Fixed #27803 -- Kept safe status of lazy safe strings in conditional_escape

This commit is contained in:
Claude Paroz 2017-02-01 16:39:32 +01:00
parent f8d52521ab
commit a21ec12409
2 changed files with 4 additions and 1 deletions

View file

@ -170,6 +170,7 @@ class TestUtilsHtml(SimpleTestCase):
s = '<h1>interop</h1>'
self.assertEqual(conditional_escape(s), '&lt;h1&gt;interop&lt;/h1&gt;')
self.assertEqual(conditional_escape(mark_safe(s)), s)
self.assertEqual(conditional_escape(lazystr(mark_safe(s))), s)
def test_html_safe(self):
@html_safe