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