#NEWLINE# def testErrback( self ) : #NEWLINE# #INDENT# d = gather_deferreds ( [ ] , errback_if_any_fail = True ) #NEWLINE# self . assertCallbackEqual ( d , [ ] ) #NEWLINE# da = Deferred ( ) #NEWLINE# db = Deferred ( ) #NEWLINE# dc = Deferred ( ) #NEWLINE# d = gather_deferreds ( [ da , db , dc ] , errback_if_any_fail = True ) #NEWLINE# dc . callback ( 'c' ) #NEWLINE# db . callback ( 'b' ) #NEWLINE# da . callback ( 'a' ) #NEWLINE# self . assertCallbackEqual ( d , [ ( True , ( 'a' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( True , ( 'b' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( True , ( 'c' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] ) #NEWLINE# da = Deferred ( ) #NEWLINE# db = Deferred ( ) #NEWLINE# dc = Deferred ( ) #NEWLINE# df = Deferred ( ) #NEWLINE# d = gather_deferreds ( [ da , db , dc , df ] , errback_if_any_fail = True ) #NEWLINE# df . errback ( ) #NEWLINE# dc . callback ( 'c' ) #NEWLINE# db . callback ( 'b' ) #NEWLINE# da . callback ( 'a' ) #NEWLINE# self . assertErrbackEqual ( d , [ ( True , ( 'a' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( True , ( 'b' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( True , ( 'c' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( False , ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] ) #NEWLINE# da = Deferred ( ) #NEWLINE# db = Deferred ( ) #NEWLINE# dc = Deferred ( ) #NEWLINE# df = Deferred ( ) #NEWLINE# df . errback ( 'f' ) #NEWLINE# dc . callback ( 'c' ) #NEWLINE# d = gather_deferreds ( [ dc , db , dc , df ] , errback_if_any_fail = True ) #NEWLINE# db . callback ( 'b' ) #NEWLINE# da . callback ( 'a' ) #NEWLINE# self . assertErrbackEqual ( d , [ ( True , ( 'a' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( True , ( 'b' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( True , ( 'c' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( False , ( 'f' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] )