def test_noCancellerMultipleCancelsAfterCancelAndCallback(self):
        d = defer.Deferred()
        d.addCallbacks(self._callback, self._errback)
        d.cancel()
        currentFailure = self.errbackResults
        # One callback will be ignored
        d.callback(None)
        # Cancel should have no effect.
        d.cancel()
        self.assertIdentical(currentFailure, self.errbackResults)
Create new empty odict
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/DeferredCancellerTest.test_noCancellerMultipleCancelsAfterCancelAndCallback--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/aid/odicting.py/odict.__init__