#NEWLINE# def test_formatFailedMethod( self ) : #NEWLINE# #INDENT# '\n        A test method which runs and has a failure recorded against it is\n        reported in the output stream with the I{FAIL} tag along with a summary\n        of what failure was reported and the ID of the test.\n        ' #NEWLINE# suite = self . loader . loadByName ( 'twisted.trial.test.erroneous.TestRegularFail.test_fail' ) #NEWLINE# output = self . getOutput ( suite ) . splitlines ( ) #NEWLINE# match = [ self . doubleSeparator , '[FAIL]' , 'Traceback (most recent call last):' , re . compile ( '^\\s+File .*erroneous\\.py., line \\d+, in test_fail$' ) , re . compile ( '^\\s+self\\.fail\\("I fail"\\)$' ) , 'twisted.trial.unittest.FailTest: I fail' , 'twisted.trial.test.erroneous.TestRegularFail.test_fail' ] #NEWLINE# self . stringComparison ( output , output )