def test_get_active_domains(): virt = Virt() dom = virt.get_active_domains()[0] eq_(dom["name"], "test") eq_(dom["host"], "test") eq_(dom["state"], "running")