'When cancelling the L{Deferred} returned by L{client.readBody}, the
connection to the server will be aborted.'

def test_cancel(self):

    response = DummyResponse()
    deferred = client.readBody(response)
    deferred.cancel()
    self.failureResultOf(deferred, defer.CancelledError)
    self.assertTrue(response.transport.aborting)
