def test_hypervisor_has_virtio(self): ret = libvirt_setup.hypervisor_has_virtio("kvm") self.assertTrue(ret, "Hypervisor has virtio") for libvirt_type in ["xen", "hyperv"]: ret = libvirt_setup.hypervisor_has_virtio(libvirt_type) self.assertFalse(ret, "Hypervisor has no virtio")
def test_hypervisor_has_virtio(self): ret = libvirt_setup.hypervisor_has_virtio("kvm") self.assertTrue(ret, "Hypervisor has virtio") for libvirt_type in ["xen", "hyperv"]: ret = libvirt_setup.hypervisor_has_virtio(libvirt_type) self.assertFalse(ret, "Hypervisor has no virtio")