def METHOD_NAME(self):
    """Adding a protocol with a number >=2**16 raises an exception."""
    e = ethernet.EthernetProtocol()
    try:
        e.addProto(2 ** 16, MyProtocol([]))
    except TypeError as e:
        if e.args == ("Added protocol must fit in 16 bits",):
            pass
        else:
            raise
    else:
        raise AssertionError("addProto must raise an exception for bad protocols")