#NEWLINE# def test_text_status( self ) : #NEWLINE# #INDENT# p = TestProgram ( 'name' ) #NEWLINE# self . addCleanup ( ( lambda : ( setattr ( p , '_test_is_running' , False ) , p . delete ( ) ) ) ) #NEWLINE# self . assertEqual ( p . text_status , 'STOPPED' ) #NEWLINE# p . state . update ( paused = True ) #NEWLINE# self . assertEqual ( p . text_status , 'OFF' ) #NEWLINE# p . state . update ( exit_status = 1 ) #NEWLINE# self . assertEqual ( p . text_status , 'ERROR' ) #NEWLINE# p . _test_is_running = True #NEWLINE# self . assertEqual ( p . text_status , 'RUNNING' )