def test_largeWrite(self):
    '\n        If a string longer than the Banana size limit is passed to the\n        L{distrib.Request} passed to the remote resource, it is broken into\n        smaller strings to be transported over the PB connection.\n        '

    class LargeWrite(resource.Resource):

        def render(self, request):
            request.write(((b'x' * SIZE_LIMIT) + b'y'))
            request.finish()
            return server.NOT_DONE_YET
    request = self._requestTest(LargeWrite())
    request.addCallback(self.assertEqual, ((b'x' * SIZE_LIMIT) + b'y'))
    return request
If a string longer than the Banana size limit is passed to the
L{distrib.Request} passed to the remote resource, it is broken into
smaller strings to be transported over the PB connection.
def test_largeWrite(self):
    '\n        If a string longer than the Banana size limit is passed to the\n        L{distrib.Request} passed to the remote resource, it is broken into\n        smaller strings to be transported over the PB connection.\n        '

    class LargeWrite(resource.Resource):

        def render(self, request):
            request.write(((b'x' * SIZE_LIMIT) + b'y'))
            request.finish()
            return server.NOT_DONE_YET
    request = self._requestTest(LargeWrite())
    request.addCallback(self.assertEqual, ((b'x' * SIZE_LIMIT) + b'y'))
    return request