Exemple #1
0
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")
Exemple #2
0
def test_uri_default():
    virt = Virt()
    eq_(virt.uri("host0.example.jp"), "remote://host0.example.jp/")