def test_uri_qemu(): virt = Virt() conf = maglica.config.load_from_dict({ "libvirt": { "driver" : "qemu", "transport" : "tcp", "path" : "system", } }) virt.conf = conf eq_(virt.uri("host0.example.jp"), "qemu+tcp://host0.example.jp/system")
def test_uri_default(): virt = Virt() eq_(virt.uri("host0.example.jp"), "remote://host0.example.jp/")