def test_is_busy_after_proc_finish(self): p = Processor('test', 10) work_time = p.add_process(12313) for w in range(work_time - 1): p.process() # self.assertEqual(p.is_busy(), True) self.assertEqual(p.is_busy(), False)
def test_is_busy_on_init(self): p = Processor('test', 10) self.assertEqual(p.is_busy(), False)