예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 def test_errback():
     ''' Invoke errback() on empty deferred '''
     deferred = Deferred()
     deferred.errback(65537)
예제 #4
0
 def test_errback():
     """ Invoke errback() on empty deferred """
     deferred = Deferred()
     deferred.errback(65537)