'L{amp.BinaryBoxProtocol} drops its connection if the length prefix for
a subsequent key in the first box it receives is larger than 255.'

def test_firstBoxSubsequentKeyExcessiveLength(self):

    transport = StringTransport()
    protocol = amp.BinaryBoxProtocol(self)
    protocol.makeConnection(transport)
    protocol.dataReceived('\x00\x01k\x00\x01v')
    self.assertFalse(transport.disconnecting)
    protocol.dataReceived('\x01\x00')
    self.assertTrue(transport.disconnecting)
