'If a length prefix for a string longer than C{MAX_LENGTH} is delivered
to C{dataReceived} at the same time as the entire string, the string is
not passed to C{stringReceived}.'

def test_longStringNotDelivered(self):

    r = self.getProtocol()
    r.MAX_LENGTH = 10
    r.dataReceived((struct.pack(r.structFormat, 11) + ('x' * 11)))
    self.assertEqual(r.received, [])
