'``LoopbackAMPClient.callRemote`` fails with ``ConnectionLost`` when the
response is > MAX_VALUE_LENGTH when serialized. The ``ConnectionLost``
failure contains the traceback message for the original ``TooLong``
error. Not ideal. See https://tm.tl/7055.'

def test_big_response(self):

    client = LoopbackAMPClient(command_locator=MinimalLocator())
    d = client.callRemote(command=CommandWithBigResponse)
    failure = self.failureResultOf(d, ConnectionLost)
    self.assertIn('twisted.protocols.amp.TooLong', failure.value.args[0])
