#NEWLINE# def test_custom_project_template_from_tarball_by_url( self ) : #NEWLINE# #INDENT# 'Make sure the startproject management command is able to use a different project template from a tarball via a url' #NEWLINE# template_url = ( '%s/admin_scripts/custom_templates/project_template.tgz' % testproject_dir . live_server_url ) #NEWLINE# args = [ 'startproject' , '--template' , template_url , 'urltestproject' ] #NEWLINE# testproject_dir = os . path . join ( test_dir , 'urltestproject' ) #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' ) ) )