@pytest.mark.parametrize('bad_name', ['name,with,comma', 'name with space'])
def test_invalid_name(self, bad_name):
    pattern = f"'{bad_name}' is not a valid node name. It must contain only letters, digits, hyphens, underscores and/or fullstops."
    with pytest.raises(ValueError, match=re.escape(pattern)):
        node(identity, ['in'], ['out'], name=bad_name)
@pytest.mark.parametrize('bad_name', ['name,with,comma', 'name with space'])
def test_invalid_name(self, bad_name):
    pattern = f"'{bad_name}' is not a valid node name. It must contain only letters, digits, hyphens, underscores and/or fullstops."
    with pytest.raises(ValueError, match=re.escape(pattern)):
        node(identity, ['in'], ['out'], name=bad_name)