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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user