Esempio n. 1
0
 def testRoundsUp(self):
   proc = mock.Mock()
   fio_benchmark.RunForMinutes(proc, 12, 10)
   self.assertEquals(proc.call_count, 2)
Esempio n. 2
0
 def testZeroMinutes(self):
   proc = mock.Mock()
   fio_benchmark.RunForMinutes(proc, 0, 10)
   self.assertEquals(proc.call_count, 0)
Esempio n. 3
0
 def testBasicRun(self):
   proc = mock.Mock()
   fio_benchmark.RunForMinutes(proc, 20, 10)
   self.assertEquals(proc.call_count, 2)