def test_benchmark_finish_oserror(self, action_set): action_set.side_effect = OSError('File not found') self.assertFalse(Benchmark.finish())
def test_benchmark_finish(self, action_set): action_set.return_value = True self.assertTrue(Benchmark.finish())