def test_get_resolved_config_calls_expand_paths(
    mock_get_egrc_config, mock_expand
):
    """
    We expect the examples_dir and custom_dir to be expanded.
    """
    def pretend_to_expand(path):
        if (path):
            return path + '/expanded'
        else:
            return None

    mock_get_egrc_config.return_value = config.get_empty_config()
    mock_expand.side_effect = pretend_to_expand

    # We are going to check against the default values, as the other paths have
    # an opportunity to already be expanded at this point. The function that
    # parses from the egrc returns the values expanded, eg.
    expected_examples_dir = pretend_to_expand(config.DEFAULT_EXAMPLES_DIR)
    expected_custom_dir = pretend_to_expand(config.DEFAULT_CUSTOM_DIR)

    actual = _call_get_resolved_config_with_defaults()

    assert actual.examples_dir == expected_examples_dir
    assert actual.custom_dir == expected_custom_dir

    We expect the examples_dir and custom_dir to be expanded.
    
test/config_test.py