after PortalTransforms uses lxml html method to serialize
(instead of xml method)
This commit is contained in:
Godefroid Chapelle 2022-03-15 10:35:00 +01:00
parent a86db1b8c2
commit 8bc3d824e6

View File

@ -158,7 +158,7 @@ class CommentTest(unittest.TestCase):
comment1.text = 'First paragraph\n\nSecond_paragraph' comment1.text = 'First paragraph\n\nSecond_paragraph'
self.assertEqual( self.assertEqual(
''.join(comment1.getText().split()), ''.join(comment1.getText().split()),
'<p>Firstparagraph<br/><br/>Second_paragraph</p>', '<p>Firstparagraph<br><br>Second_paragraph</p>',
) )
def test_getText_escapes_HTML(self): def test_getText_escapes_HTML(self):