Refs #24652 -- Converted a template test to avoid executing queries.

This commit is contained in:
Simon Charette 2015-04-13 12:18:57 -04:00
parent 3db21c351b
commit 8bf1449edb
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ class TemplateTests(SimpleTestCase):
"""
#23060 -- Test non-ASCII model representation in debug output.
"""
Group.objects.create(name="清風")
c1 = Context({"objs": Group.objects.all()})
group = Group(name="清風")
c1 = Context({"objs": [group]})
t1 = Engine().from_string('{% debug %}')
self.assertIn("清風", t1.render(c1))