0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Test that serialized value of RawHTMLBlock is not SafeData

This commit is contained in:
Matt Westcott 2015-06-01 18:45:26 +01:00
parent db59fb5bc6
commit fb2850403f

View File

@ -293,6 +293,7 @@ class TestRawHTMLBlock(unittest.TestCase):
block = blocks.RawHTMLBlock()
result = block.get_prep_value(mark_safe('<blink>BOOM</blink>'))
self.assertEqual(result, '<blink>BOOM</blink>')
self.assertNotIsInstance(result, SafeData)
def test_deserialize(self):
block = blocks.RawHTMLBlock()