def test_requirements(actor):
    assert actor.requirements_get() == []
    actor.requirements_add([1, 2, 3])
    assert actor.requirements_get() == [1, 2, 3]
    actor.requirements_add([4, 5])
    assert actor.requirements_get() == [4, 5]
    actor.requirements_add([6, 7], extend=True)
    assert actor.requirements_get() == [4, 5, 6, 7]
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/tests/test_actor.py/test_requirements/original