def testGetDevicesFromLibvirt(self): libvirt_devices, _ = hostdev._get_devices_from_libvirt() self.assertEqual(hostdevlib.DEVICES_PROCESSED, libvirt_devices) self.assertEqual( len(libvirt_devices), len(hostdevlib.PCI_DEVICES) + len(hostdevlib.USB_DEVICES) + len(hostdevlib.SCSI_DEVICES))
def testGetDevicesFromLibvirt(self): libvirt_devices, _ = hostdev._get_devices_from_libvirt() self.assertEqual(hostdevlib.DEVICES_PROCESSED, libvirt_devices) self.assertEqual(len(libvirt_devices), len(hostdevlib.PCI_DEVICES) + len(hostdevlib.USB_DEVICES) + len(hostdevlib.SCSI_DEVICES))