Example #1
0
 def setUp(self):
     super(PciDeviceStatsTestCase, self).setUp()
     self.pci_stats = pci.PciDeviceStats()
     # The following two calls need to be made before adding the devices.
     patcher = pci_fakes.fake_pci_whitelist()
     self.addCleanup(patcher.stop)
     self._create_fake_devs()
Example #2
0
 def setUp(self):
     super(PciDeviceStatsTestCase, self).setUp()
     self.pci_stats = pci.PciDeviceStats()
     # The following two calls need to be made before adding the devices.
     patcher = pci_fakes.fake_pci_whitelist()
     self.addCleanup(patcher.stop)
     self._create_fake_devs()
Example #3
0
 def setUp(self):
     super(PciDevTrackerTestCase, self).setUp()
     self.stubs.Set(db, 'pci_device_get_all_by_node',
         self._fake_get_pci_devices)
     # The fake_pci_whitelist must be called before creating the fake
     # devices
     patcher = pci_fakes.fake_pci_whitelist()
     self.addCleanup(patcher.stop)
     self._create_fake_instance()
     self.tracker = pci_manager.PciDevTracker(1)
Example #4
0
 def setUp(self):
     super(PciDevTrackerTestCase, self).setUp()
     self.stubs.Set(db, 'pci_device_get_all_by_node',
                    self._fake_get_pci_devices)
     # The fake_pci_whitelist must be called before creating the fake
     # devices
     patcher = pci_fakes.fake_pci_whitelist()
     self.addCleanup(patcher.stop)
     self._create_fake_instance()
     self.tracker = pci_manager.PciDevTracker(1)