#NEWLINE# def test_file_without_extension( self ) : #NEWLINE# #INDENT# 'Make sure the startproject management command is able to render custom files' #NEWLINE# template_path = os . path . join ( test_dir , 'admin_scripts' , 'custom_templates' , 'project_template' ) #NEWLINE# args = [ 'startproject' , '--template' , template_path , 'customtestproject' , '-e' , 'txt' , '-n' , 'Procfile' ] #NEWLINE# testproject_dir = os . path . join ( test_dir , 'customtestproject' ) #NEWLINE# ( out , err ) = self . run_django_admin ( args ) #NEWLINE# self . addCleanup ( shutil . rmtree , testproject_dir ) #NEWLINE# self . assertNoOutput ( err ) #NEWLINE# self . assertTrue ( os . path . isdir ( testproject_dir ) ) #NEWLINE# self . assertTrue ( os . path . exists ( os . path . join ( testproject_dir , 'additional_dir' ) ) ) #NEWLINE# base_path = os . path . join ( testproject_dir , 'additional_dir' ) #NEWLINE# for f in ( 'Procfile' , 'additional_file.py' , 'requirements.txt' ) : #NEWLINE# #INDENT# self . assertTrue ( os . path . exists ( os . path . join ( base_path , f ) ) ) #NEWLINE# with open ( os . path . join ( base_path , f ) ) as fh : #NEWLINE# #INDENT# self . assertEqual ( fh . read ( ) , '# some file for customtestproject test project' )