def test_cancelAfterCallback(self):
        def cancel(d):
            self.cancellerCallCount += 1
            d.errback(GenericError())
        d = defer.Deferred(canceller=cancel)
        d.addCallbacks(self._callback, self._errback)
        d.callback('biff!')
        d.cancel()
        self.assertEquals(self.cancellerCallCount, 0)
        self.assertEquals(self.errbackResults, None)
        self.assertEquals(self.callbackResults, 'biff!')
Test that a private project is visible to its maintainer.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/DeferredCancellerTest.test_cancelAfterCallback--crossover with--dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/projects/tests/views.py/ProjectViewsTests.test_project_outsource_good