def test_noCancellerMultipleCancelsAfterCancelAndErrback(self):
        d = defer.Deferred()
        d.addCallbacks(self._callback, self._errback)
        d.cancel()
        self.assertEquals(self.errbackResults.type, defer.CancelledError)
        currentFailure = self.errbackResults
        # One errback will be ignored
        d.errback(GenericError())
        # I.e., we should still have a CancelledError.
        self.assertEquals(self.errbackResults.type, defer.CancelledError)
        d.cancel()
        self.assertIdentical(currentFailure, self.errbackResults)
A L{defer.Deferred} without a canceller, when cancelled and then
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/DeferredCancellerTest.test_noCancellerMultipleCancelsAfterCancelAndErrback