def testAddingBadProtos_TooBig(self):
        """Adding a protocol with a number >=2**16 raises an exception."""
        e = ethernet.EthernetProtocol()
        try:
            e.addProto(2**16, MyProtocol([]))
        except __HOLE__, 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'
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/pair/test/test_ethernet.py/EthernetTestCase.testAddingBadProtos_TooBig