def test_get_resolved_config_defaults_to_egrc():
    """
    When no command line options are passed, we should prefer those in the
    egrc.
    """
    egrc_config = _create_dummy_egrc_config()

    # The second level of priority for editor_cmd is the environment variable,
    # so we include that here rather than from the egrc. Slightly hacky.
    editor_cmd = 'value from env'

    _assert_about_get_resolved_config(
        egrc_config=egrc_config,
        environment_editor_cmd=editor_cmd,
        expected_config=egrc_config,
    )

    When no command line options are passed, we should prefer those in the
    egrc.
    
test/config_test.py