'Adding a wrong level protocol raises an exception.'

def testAddingBadProtos_WrongLevel(self):

    e = ip.IPProtocol()
    try:
        e.addProto(42, 'silliness')
    except components.CannotAdapt:
        pass
    else:
        raise AssertionError('addProto    must    raise    an    exception    for    bad    protocols')
