'Netstrings with a length specification exceeding the specified
C{MAX_LENGTH} are refused.'

def test_maxReceiveLimit(self):

    tooLong = (self.netstringReceiver.MAX_LENGTH + 1)
    self.netstringReceiver.dataReceived(''.join((bytes(tooLong), ':', ('a' * tooLong))))
    self.assertTrue(self.transport.disconnecting)
