#NEWLINE# @ withActionContext #NEWLINE# def test_addCallbacksErrbackResult( self ) : #NEWLINE# #INDENT# '\n        An errback added with DeferredContext.addCallbacks has its result passed\n        on to the next callback.\n        ' #NEWLINE# exception = ZeroDivisionError ( ) #NEWLINE# d = fail ( exception ) #NEWLINE# d = DeferredContext ( d ) #NEWLINE# d . addCallbacks ( ( lambda x : x ) , ( lambda x : [ x . value , 1 ] ) ) #NEWLINE# self . assertEqual ( self . successResultOf ( d ) , [ exception , 1 ] )