#NEWLINE# def run_manage( self , args , settings_file = None ) : #NEWLINE# #INDENT# conf_dir = os . path . dirname ( conf . __file__ ) #NEWLINE# template_manage_py = os . path . join ( conf_dir , 'project_template' , 'manage.py' ) #NEWLINE# test_dir = os . path . dirname ( os . path . dirname ( __file__ ) ) #NEWLINE# test_manage_py = os . path . join ( stdout , 'manage.py' ) #NEWLINE# shutil . copyfile ( template_manage_py , test_manage_py ) #NEWLINE# ( stdout , stderr ) = self . run_test ( './manage.py' , args , settings_file ) #NEWLINE# os . remove ( test_manage_py ) #NEWLINE# return ( stdout , stderr )