def test_validate_secondary_period_returns_false_when_not_full_frame_from_task_start_to_task_deadline_for_each_task(
):
    planner = CyclicExecutivePlanner(
        [Task('T1', 30, 6),
         Task('T2', 20, 3),
         Task('T3', 120, 14)])
    assert not planner.validate_secondary_period(15)
def test_validate_secondary_period_returns_false_when_provided_sp_is_negative(
):
    planner = CyclicExecutivePlanner(
        [Task('T1', 30, 6),
         Task('T2', 20, 3),
         Task('T3', 120, 14)])
    assert not planner.validate_secondary_period(-5)