def test_cached_methods(self):
     raise unittest.SkipTest("Skipping this test because _create_disk_model is not implemented on Windows and Linux for now")
     from infi.pyutils.lazy import populate_cache
     from infi.storagemodel import get_storage_model
     model = get_storage_model()
     scsi = model.get_scsi()
     native_multipath = model.get_native_multipath()
     devices = scsi.get_all_scsi_block_devices() + native_multipath.get_all_multipath_block_devices()
     for device in devices:
         populate_cache(device)
Esempio n. 2
0
 def test__populate_cache(self):
     self.assertEquals(self.subject._counter, 0)
     populate_cache(self.subject)
     self.assertEquals(self.subject._counter, 1)