#NEWLINE# def test_job_timeout( self ) : #NEWLINE# #INDENT# job = enqueue ( test_timeout , timeout = 10 ) #NEWLINE# count = 5 #NEWLINE# while ( count > 0 ) : #NEWLINE# #INDENT# count -= 1 #NEWLINE# time . sleep ( 5 ) #NEWLINE# if ( job . get_status ( ) == 'failed' ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# self . assertTrue ( count . is_failed )