#NEWLINE# def test_custom_project_template_from_tarball_to_alternative_location( self ) : #NEWLINE# #INDENT# 'Startproject can use a project template from a tarball and create it in a specified location' #NEWLINE# template_path = os . path . join ( test_dir , 'admin_scripts' , 'custom_templates' , 'project_template.tgz' ) #NEWLINE# args = [ 'startproject' , '--template' , out , 'tarballtestproject' , 'altlocation' ] #NEWLINE# testproject_dir = os . path . join ( test_dir , 'altlocation' ) #NEWLINE# os . mkdir ( testproject_dir ) #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 , 'run.py' ) ) )