def test_cancelBeforeResponse(self):
        transport = StringTransport()
        protocol = HTTP11ClientProtocol()
        protocol.makeConnection(transport)
        result = protocol.request(Request(b'GET', b'/', _boringHeaders, None))
        result.cancel()
        self.assertTrue(transport.aborting)
        return assertWrapperExceptionTypes(
            self, result, ResponseNeverReceived, [CancelledError])
Test repository update.
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/HTTP11ClientProtocolTests.test_cancelBeforeResponse--crossover with--dataset/ETHPy150Open Sheeprider/BitBucket-api/bitbucket/tests/private/repository.py/RepositoryAuthenticatedMethodsTest.test_update