#NEWLINE# def test_template_dir_with_trailing_slash( self ) : #NEWLINE# #INDENT# 'Ticket 17475: Template dir passed has a trailing path separator' #NEWLINE# template_path = os . path . join ( test_dir , 'admin_scripts' , 'custom_templates' , ( 'project_template' + os . sep ) ) #NEWLINE# args = [ 'startproject' , '--template' , template_path , 'customtestproject' ] #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' ) ) )