Exemplo n.º 1
0
 def test_benchmark_finish(self, action_set):
     action_set.return_value = True
     self.assertTrue(Benchmark.finish())
Exemplo n.º 2
0
 def test_benchmark_finish_oserror(self, action_set):
     action_set.side_effect = OSError('File not found')
     self.assertFalse(Benchmark.finish())