diff --git a/CHANGES.rst b/CHANGES.rst index 79edea2..a10ba9f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,13 +10,14 @@ Breaking changes: New features: -- *add item here* +- Make tests work with lxml safe html cleaner Bug fixes: - *add item here* + 2.4.13 (2016-05-04) ------------------- diff --git a/plone/app/discussion/tests/test_comment.py b/plone/app/discussion/tests/test_comment.py index b041eb4..daded8b 100644 --- a/plone/app/discussion/tests/test_comment.py +++ b/plone/app/discussion/tests/test_comment.py @@ -151,10 +151,10 @@ class CommentTest(unittest.TestCase): def test_getText(self): comment1 = createObject('plone.Comment') - comment1.text = 'First paragraph\n\nSecond paragraph' + comment1.text = 'First paragraph\n\nSecond_paragraph' self.assertEqual( - comment1.getText(), - '

First paragraph

Second paragraph

' + ''.join(comment1.getText().split()), + '

Firstparagraph

Second_paragraph

' ) def test_getText_escapes_HTML(self):