def METHOD_NAME(self):
    """This test will ensure that illegal port names will raise a `ValueError` when trying to add it."""
    port = InputPort('port')
    port_namespace = PortNamespace('namespace')
    illegal_port_names = [
        'two__underscores',
        'three___underscores',
        '_leading_underscore',
        'trailing_underscore_',
        'non_numeric_%',
        'including.period',
        'disallowed👻unicodecharacters',
        'white space',
        'das-hes',
    ]
    for port_name in illegal_port_names:
        with pytest.raises(ValueError):
            port_namespace[port_name] = port