'L{client.readBody} returns a L{Deferred} which fires with the complete
body of the L{IResponse} provider passed to it.'

def test_success(self):

    response = DummyResponse()
    d = client.readBody(response)
    response.protocol.dataReceived('first')
    response.protocol.dataReceived('second')
    response.protocol.connectionLost(Failure(ResponseDone()))
    self.assertEqual(self.successResultOf(d), 'firstsecond')
