#NEWLINE# def test_loadFailingMethod( self ) : #NEWLINE# #INDENT# import erroneous #NEWLINE# suite = self . loader . loadMethod ( erroneous . TestRegularFail . test_fail ) #NEWLINE# result = reporter . TestResult ( ) #NEWLINE# suite . run ( result ) #NEWLINE# self . failUnlessEqual ( result . testsRun , 1 ) #NEWLINE# self . failUnlessEqual ( len ( result . failures ) , 1 )