'The Deferred returned by L{HTTP11ClientProtocol.request} will fire
with a L{ResponseFailed} failure containing a L{ConnectionAborted}
exception, if the connection was aborted before all response headers
have been received.'

def test_abortBeforeResponseBody(self):

    transport = StringTransport()
    protocol = HTTP11ClientProtocol()
    protocol.makeConnection(transport)
    result = protocol.request(Request('GET', '/', _boringHeaders, None))
    protocol.abort()
    self.assertTrue(transport.disconnecting)
    protocol.connectionLost(Failure(ConnectionDone()))
    return assertResponseFailed(self, result, [ConnectionAborted])
