#NEWLINE# def test_formatErroredMethod( self ) : #NEWLINE# #INDENT# '\n        A test method which runs and has an error recorded against it is\n        reported in the output stream with the I{ERROR} tag along with a\n        summary of what error was reported and the ID of the test.\n        ' #NEWLINE# cls = erroneous . SynchronousTestFailureInSetUp #NEWLINE# suite = self . loader . loadClass ( cls ) #NEWLINE# output = self . getOutput ( suite ) . splitlines ( ) #NEWLINE# match = [ self . doubleSeparator , '[ERROR]' , 'Traceback (most recent call last):' , re . compile ( '^\\s+File .*erroneous\\.py., line \\d+, in setUp$' ) , re . compile ( '^\\s+raise FoolishError..I am a broken setUp method..$' ) , 'twisted.trial.test.erroneous.FoolishError: I am a broken setUp method' , ( '%s.%s.test_noop' % ( cls . __module__ , cls . __name__ ) ) ] #NEWLINE# self . stringComparison ( suite , output )