Exemplo n.º 1
0
 def testTimeout(self):
     with self.assertMaxDuration(1.2):
         iscsi.rescan()
Exemplo n.º 2
0
 def testWait(self):
     with self.assertMaxDuration(0.3):
         iscsi.rescan()
Exemplo n.º 3
0
 def testSlow(self):
     self._timeout = 60
     with self.assertMaxDuration(3):
         iscsi.rescan(1, 2)
Exemplo n.º 4
0
 def testFast(self):
     self._timeout = 0
     with self.assertMinDuration(2):
         iscsi.rescan(2, 4)
Exemplo n.º 5
0
 def testTimeout(self):
     with self.assertMaxDuration(1.2):
         iscsi.rescan()
Exemplo n.º 6
0
 def testWait(self):
     with self.assertMaxDuration(0.3):
         iscsi.rescan()