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

def test_maximumLineLengthRemaining(self):

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