#NEWLINE# @ withActionContext #NEWLINE# def test_addErrbackCallsAddCallbacks( self ) : #NEWLINE# #INDENT# '\n        L{DeferredContext.addErrback} passes its arguments on to\n        L{DeferredContext.addCallbacks}.\n        ' #NEWLINE# result = Deferred ( ) #NEWLINE# context = DeferredContext ( result ) #NEWLINE# called = [ ] #NEWLINE# def addCallbacks( callback , errback , callbackArgs = None , callbackKeywords = None , errbackArgs = None , errbackKeywords = None ) : #NEWLINE# #INDENT# called . append ( ( callback , errback , callbackArgs , callbackKeywords , errbackArgs , errbackKeywords ) ) #NEWLINE# #UNINDENT# context . addCallbacks = addCallbacks #NEWLINE# f = ( lambda x , y , z : None ) #NEWLINE# context . addErrback ( f , 2 , z = 3 ) #NEWLINE# self . assertEqual ( called , [ ( _passthrough , f , None , None , ( 2 , ) , { #NEWLINE# #INDENT# 'z' : 3 , #NEWLINE# #UNINDENT# } ) ] )