mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27803 -- Kept safe status of lazy safe strings in conditional_escape
This commit is contained in:
@@ -170,6 +170,7 @@ class TestUtilsHtml(SimpleTestCase):
|
||||
s = '<h1>interop</h1>'
|
||||
self.assertEqual(conditional_escape(s), '<h1>interop</h1>')
|
||||
self.assertEqual(conditional_escape(mark_safe(s)), s)
|
||||
self.assertEqual(conditional_escape(lazystr(mark_safe(s))), s)
|
||||
|
||||
def test_html_safe(self):
|
||||
@html_safe
|
||||
|
||||
Reference in New Issue
Block a user