#NEWLINE# def test_timeout_causes_test_error( self ) : #NEWLINE# #INDENT# class SomeCase ( TestCase ) : #NEWLINE# #INDENT# def test_pause( self ) : #NEWLINE# #INDENT# return defer . Deferred ( ) #NEWLINE# #UNINDENT# #UNINDENT# test = SomeCase ( 'test_pause' ) #NEWLINE# runner = self . make_runner ( test ) #NEWLINE# result = self . make_result ( ) #NEWLINE# runner . run ( result ) #NEWLINE# error = result . _events [ 1 ] [ 2 ] #NEWLINE# self . assertThat ( [ event [ : 2 ] for event in result . _events ] , Equals ( [ ( 'startTest' , test ) , ( 'addError' , test ) , ( 'stopTest' , test ) ] ) ) #NEWLINE# self . assertIn ( 'TimeoutError' , str ( error [ 'traceback' ] ) )