#NEWLINE# @ pytest . mark . skipif ( ( not os . path . exists ( '/usr/games/fortune' ) ) , reason = 'Fortune executable is not installed.' ) #NEWLINE# def test_index( ) : #NEWLINE# #INDENT# main . app . testing = True #NEWLINE# client = main . app . test_client ( ) #NEWLINE# r = client . get ( '/' ) #NEWLINE# assert ( r . status_code == 200 ) #NEWLINE# assert len ( r . data )