Beispiel #1
0
def test_is_fee_returns_false_when_current_task_is_not_none():
    processor = Processor()
    processor.add_time_unit()
    processor.set_task(Task('T1', 2, 2))
    assert not processor.is_free()
Beispiel #2
0
def test_is_fee_returns_true_when_current_task_is_none():
    processor = Processor()
    processor.add_time_unit()
    assert processor.is_free()