mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 10:30:58 +00:00
Test that serialized value of RawHTMLBlock is not SafeData
This commit is contained in:
parent
db59fb5bc6
commit
fb2850403f
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue