@pytest.mark.parametrize("port_type,port_name,port_property,value,expected", [
    ("invalid", "", "", "", False),
    ("in", "missing", "", "", False),
    ("out", "missing", "", "", False),
    ("out", "token", "missing", "", False),
    ("in", "token", "missing", "", False),
    ("out", "token", "name", "new_name", True),
    ("out", "token", "name", "new_name", True),
])
def test_set_port_property(port_type, port_name, port_property, value, expected):
    assert actor().set_port_property(port_type, port_name, port_property, value) is expected
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/tests/test_actor.py/test_set_port_property/original