def test_config_returns_egrc_values_if_present(mock_get_config, mock_isfile):
    """
    If values are present from an egrc, make sure we take them.

    Doesn't make sure they are extracted correctly from an egrc file.
    """
    examples_dir = 'test_eg_dir_from_egrc'
    custom_dir = 'test_custom_dir_from_egrc'
    test_color_config = _get_color_config_from_egrc_withdata()
    test_use_color = True
    test_pager_cmd = 'more baby'
    test_editor_cmd = 'vim is the best'
    test_squeeze = True
    test_subs = ['alpha', 'beta']

    def_config = config.Config(
        examples_dir=examples_dir,
        custom_dir=custom_dir,
        color_config=test_color_config,
        use_color=test_use_color,
        pager_cmd=test_pager_cmd,
        editor_cmd=test_editor_cmd,
        squeeze=test_squeeze,
        subs=test_subs,
    )

    mock_get_config.return_value = def_config

    resolved_config = config.get_resolved_config(
        None,
        None,
        None,
        None,
        None,
        None,
    )

    assert resolved_config.examples_dir == examples_dir
    assert resolved_config.custom_dir == custom_dir
    assert resolved_config.color_config == test_color_config
    assert resolved_config.use_color == test_use_color
    assert resolved_config.pager_cmd == test_pager_cmd
    assert resolved_config.editor_cmd == test_editor_cmd
    assert resolved_config.squeeze == test_squeeze
    assert resolved_config.subs == test_subs

    If values are present from an egrc, make sure we take them.

    Doesn't make sure they are extracted correctly from an egrc file.
    
test/config_test.py