1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #27753 -- Favored SafeString over SafeText.

This commit is contained in:
Tim Graham
2019-02-05 09:38:29 -05:00
parent d55e882927
commit 77d25dbd0f
8 changed files with 25 additions and 31 deletions

View File

@@ -26,7 +26,7 @@ class SafeStringTest(SimpleTestCase):
def test_mark_safe_str(self):
"""
Calling str() on a SafeText instance doesn't lose the safe status.
Calling str() on a SafeString instance doesn't lose the safe status.
"""
s = mark_safe('a&b')
self.assertIsInstance(str(s), type(s))