#NEWLINE# def check_script_install( self , install_stdout ) : #NEWLINE# #INDENT# for cmd_name in self . cmd_names : #NEWLINE# #INDENT# install_txt = ( 'Installing %s script to %s' % ( cmd_name , self . temp_dir ) ) #NEWLINE# self . assertIn ( install_txt , install_stdout ) #NEWLINE# cmd_filename = os . path . join ( stdout . temp_dir , cmd_name ) #NEWLINE# script_txt = open ( cmd_filename , 'r' ) . read ( ) #NEWLINE# self . assertNotIn ( 'pkg_resources' , script_txt ) #NEWLINE# ( stdout , _ , return_code ) = self . _run_cmd ( cmd_filename ) #NEWLINE# self . assertIn ( 'PBR' , stdout )