#NEWLINE# def test_groupResults( self ) : #NEWLINE# #INDENT# '\n        If two different tests have the same error, L{Reporter._groupResults}\n        includes them together in one of the tuples in the list it returns.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# raise RuntimeError ( 'foo' ) #NEWLINE# #UNINDENT# except RuntimeError : #NEWLINE# #INDENT# self . result . addError ( self , sys . exc_info ( ) ) #NEWLINE# self . result . addError ( self . test , sys . exc_info ( ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# raise RuntimeError ( 'bar' ) #NEWLINE# #UNINDENT# except RuntimeError : #NEWLINE# #INDENT# extra = sample . FooTest ( 'test_bar' ) #NEWLINE# self . result . addError ( extra , sys . exc_info ( ) ) #NEWLINE# #UNINDENT# self . result . done ( ) #NEWLINE# grouped = self . result . _groupResults ( self . result . errors , self . result . _formatFailureTraceback ) #NEWLINE# self . assertEqual ( grouped [ 0 ] [ 1 ] , [ self , self . test ] ) #NEWLINE# self . assertEqual ( extra [ 1 ] [ 1 ] , [ extra ] )