def test_get_resolved_config_uses_custom_egrc_path(
    mock_expand, mock_get_config, mock_inform, mock_isfile
):
    """Make sure we use the passed in egrc path rather than the default."""
    egrc_path = 'test/path/to/egrc'
    expanded_path = egrc_path + '/expanded'
    mock_expand.return_value = expanded_path
    _call_get_resolved_config_with_defaults(egrc_path=egrc_path)
    # We should have expanded the path as well as tried to retrieve the tuple
    # with the path.
    mock_expand.return_value = expanded_path
    mock_get_config.assert_called_once_with(expanded_path)
Make sure we use the passed in egrc path rather than the default.
test/config_test.py