'C{LineReceiver} disconnects the transport if it receives a line longer
than its C{MAX_LENGTH}.'

def test_maximumLineLength(self):

    proto = basic.LineReceiver()
    transport = proto_helpers.StringTransport()
    proto.makeConnection(transport)
    proto.dataReceived((('x' * (proto.MAX_LENGTH + 1)) + '\r\nr'))
    self.assertTrue(transport.disconnecting)
