def test_component(actor):
    actor.component_add(1)
    assert 1 in actor.component_members()

    actor.component_add([2, 3])
    assert 2 in actor.component_members()
    assert 3 in actor.component_members()

    actor.component_remove(1)
    assert 1 not in actor.component_members()
    actor.component_remove([2, 3])
    assert 2 not in actor.component_members()
    assert 3 not in actor.component_members()
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/tests/test_actor.py/test_component/original