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