#NEWLINE# def test_classTimeout( self ) : #NEWLINE# #INDENT# loader = pyunit . TestLoader ( ) #NEWLINE# suite = loader . loadTestsFromTestCase ( detests . TestClassTimeoutAttribute ) #NEWLINE# result = reporter . TestResult ( ) #NEWLINE# suite . run ( result ) #NEWLINE# self . assertEqual ( len ( result . errors ) , 1 ) #NEWLINE# self . _wasTimeout ( result . errors [ 0 ] [ 1 ] )