summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_unicode.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/test_unicode.py')
-rw-r--r--tests/template_tests/test_unicode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/template_tests/test_unicode.py b/tests/template_tests/test_unicode.py
index dbd18eb495..42682166f5 100644
--- a/tests/template_tests/test_unicode.py
+++ b/tests/template_tests/test_unicode.py
@@ -7,7 +7,7 @@ from django.utils.safestring import SafeData
class UnicodeTests(TestCase):
def test_template(self):
- # Templates can be created from unicode strings.
+ # Templates can be created from strings.
engine = Engine()
t1 = engine.from_string('ŠĐĆŽćžšđ {{ var }}')
# Templates can also be created from bytestrings. These are assumed to
@@ -17,14 +17,14 @@ class UnicodeTests(TestCase):
with self.assertRaises(TemplateEncodingError):
engine.from_string(b'\x80\xc5\xc0')
- # Contexts can be constructed from unicode or UTF-8 bytestrings.
+ # Contexts can be constructed from strings or UTF-8 bytestrings.
Context({b"var": b"foo"})
Context({"var": b"foo"})
c3 = Context({b"var": "Đđ"})
Context({"var": b"\xc4\x90\xc4\x91"})
# Since both templates and all four contexts represent the same thing,
- # they all render the same (and are returned as unicode objects and
+ # they all render the same (and are returned as strings and
# "safe" objects as well, for auto-escaping purposes).
self.assertEqual(t1.render(c3), t2.render(c3))
self.assertIsInstance(t1.render(c3), str)