def test_draft_editor_as_named_llm(config_toml_with_draft_editor):
    """
    Test that draft_editor is loaded if declared in the TOML under [llm.draft_editor].
    This docstring references the simpler approach: if it exists, it's just another named LLM.
    """
    config = OpenHandsConfig()
    load_from_toml(config, config_toml_with_draft_editor)

    # draft_editor should appear as a normal named LLM
    assert 'draft_editor' in config.llms

    draft_llm = config.get_llm_config('draft_editor')
    assert draft_llm is not None
    assert draft_llm.model == 'draft-model'
    assert draft_llm.api_key.get_secret_value() == 'draft-api-key'

    Test that draft_editor is loaded if declared in the TOML under [llm.draft_editor].
    This docstring references the simpler approach: if it exists, it's just another named LLM.
    
tests/unit/test_llm_draft_config.py