'Make sure the startproject management command is able to use a different project template'

def test_custom_project_template(self):

    template_path = os.path.join(custom_templates_dir, u'project_template')
    args = [u'startproject', u'--template', template_path, u'customtestproject']
    testproject_dir = os.path.join(test_dir, u'customtestproject')
    self.addCleanup(shutil.rmtree, testproject_dir, True)
    (out, err) = self.run_django_admin(args)
    self.assertNoOutput(err)
    self.assertTrue(os.path.isdir(testproject_dir))
    self.assertTrue(os.path.exists(os.path.join(testproject_dir, u'additional_dir')))
