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:
parent
db59fb5bc6
commit
fb2850403f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user