'When a length prefix is received which is greater than the protocol\'s
C{MAX_LENGTH} attribute, the C{lengthLimitExceeded} method is called
with the received length prefix.'

def test_lengthLimitExceeded(self):

    length = []
    r = self.getProtocol()
    r.lengthLimitExceeded = length.append
    r.MAX_LENGTH = 10
    r.dataReceived(struct.pack(r.structFormat, 11))
    self.assertEqual(length, [11])
