#NEWLINE# def test_multipleErrorsReported( self ) : #NEWLINE# #INDENT# '\n        If more than one cleanup fails, then the test should fail with more\n        than one error.\n        ' #NEWLINE# self . test . addCleanup ( self . test . fail , 'foo' ) #NEWLINE# self . test . addCleanup ( self . test . fail , 'bar' ) #NEWLINE# self . test . run ( self . result ) #NEWLINE# self . assertEqual ( [ 'setUp' , 'runTest' , 'tearDown' ] , self . test . log ) #NEWLINE# self . assertEqual ( 2 , len ( self . result . errors ) ) #NEWLINE# [ ( test1 , error1 ) , ( test2 , error2 ) ] = self . result . errors #NEWLINE# self . assertEqual ( test1 , self . test ) #NEWLINE# self . assertEqual ( test2 , self . test ) #NEWLINE# self . assertEqual ( error1 . getErrorMessage ( ) , 'bar' ) #NEWLINE# self . assertEqual ( error2 . getErrorMessage ( ) , 'foo' )