#NEWLINE# @ capture_logging ( ( lambda self , logger : logger . flush_tracebacks ( ZeroDivisionError ) ) ) #NEWLINE# def test_fire_when_all_fired( self , logger ) : #NEWLINE# #INDENT# '\n        The ``Deferred`` returned by ``gather_deferreds`` does not fire until\n        all the supplied ``deferreds`` have either erred back or called back.\n        ' #NEWLINE# d1 = Deferred ( ) #NEWLINE# d2 = Deferred ( ) #NEWLINE# d3 = Deferred ( ) #NEWLINE# gathering = gather_deferreds ( [ d1 , d2 , d3 ] ) #NEWLINE# d2 . errback ( ZeroDivisionError ( 'test_consume_errors1' ) ) #NEWLINE# self . assertNoResult ( gathering ) #NEWLINE# d1 . callback ( None ) #NEWLINE# d3 . callback ( None ) #NEWLINE# self . failureResultOf ( gathering )