'Make sure template context variables are not html escaped'

def test_no_escaping_of_project_variables(self):

    self.write_settings(u'alternate_settings.py')
    self.addCleanup(self.remove_settings, u'alternate_settings.py')
    template_path = os.path.join(custom_templates_dir, u'project_template')
    args = [u'custom_startproject', u'--template', template_path, u'another_project', u'project_dir', u'--extra', u'<&>', u'--settings=alternate_settings']
    testproject_dir = os.path.join(test_dir, u'project_dir')
    os.mkdir(testproject_dir)
    self.addCleanup(shutil.rmtree, testproject_dir)
    (out, err) = self.run_manage(args)
    self.assertNoOutput(err)
    test_manage_py = os.path.join(testproject_dir, u'additional_dir', u'extra.py')
    with open(test_manage_py, u'r') as fp:
        content = fp.read()
        self.assertIn(u'<&>', content)
