from nest_ui import AssistantManager

def test_assistant_match():
    assistant = AssistantManager(cooldown_seconds=0.0)
    assistant.register_command("open_game", ["open roblox"], callback=lambda text: text)
    result = assistant.hear("nest open roblox")
    assert result["status"] == "executed"
    assert result["command"] == "open_game"
