def test_reentrantRunCallbacksWithFailure(self):
        exceptionMessage = "callback raised exception"
        deferred = defer.Deferred()
        def callback2(result):
            raise Exception(exceptionMessage)
        def callback1(result):
            deferred.addCallback(callback2)
        deferred.addCallback(callback1)
        deferred.callback(None)
        self.assertFailure(deferred, Exception)
        def cbFailed(exception):
            self.assertEqual(exception.args, (exceptionMessage,))
        deferred.addCallback(cbFailed)
        return deferred
After an exception is raised by a callback which was added to a
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/DeferredTestCase.test_reentrantRunCallbacksWithFailure