def test_get_egrc_config_uses_default_xdg_dir_if_env_var_not_set():
    """
    If the XDG environment variable isn't set, but the file exists at the
    default XDG location, it should be used. Note that here we don't have
    'egrc', not as a hidden file by default.

    See: https://github.com/srsudar/eg/issues/87
    """
    expected = 'mock config from default position'

    _assert_about_get_egrc_config(
        cli_path=None,
        cli_config_exists=False,
        winning_config_path=os.path.join(
          '~', '.config', 'eg', 'egrc_expanded'),
        home_config_exists=True,
        expected_config=expected,
        xdg_dir_variable=None,
        xdg_config_exists=True,
    )

    If the XDG environment variable isn't set, but the file exists at the
    default XDG location, it should be used. Note that here we don't have
    'egrc', not as a hidden file by default.

    See: https://github.com/srsudar/eg/issues/87
    
test/config_test.py