def test_last_task_ended_returns_true_when_last_assigned_task_ended(): processor = Processor() processor.add_time_unit() t = Task('T1', 2, 2) processor.set_task(t) processor.add_time_unit() assert processor.last_task_ended()
def test_last_task_ended_returns_true_when_current_task_is_none(): processor = Processor() processor.add_time_unit() assert processor.last_task_ended()