def test_errback_chain(self): ''' Make sure the errback chain works ''' deferred = Deferred() deferred.add_errback(self._errback) deferred.add_errback(self._errback) deferred.add_errback(self._errback_last) deferred.errback(self.failure) self.assertEqual(self.counter, 3)
def test_errback_chain(self): """ Make sure the errback chain works """ deferred = Deferred() deferred.add_errback(self._errback) deferred.add_errback(self._errback) deferred.add_errback(self._errback_last) deferred.errback(self.failure) self.assertEqual(self.counter, 3)
def test_errback(): ''' Invoke errback() on empty deferred ''' deferred = Deferred() deferred.errback(65537)
def test_errback(): """ Invoke errback() on empty deferred """ deferred = Deferred() deferred.errback(65537)