Make tests work with lxml safe html cleaner (#97)

* Make tests work with lxml safe html cleaner

* whitespace fix in test assertion
This commit is contained in:
Tom Gross
2016-05-31 11:41:34 +02:00
committed by Jens W. Klein
parent 23a1f02e2f
commit 085567431f
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -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(),
'<p>First paragraph<br /><br />Second paragraph</p>'
''.join(comment1.getText().split()),
'<p>Firstparagraph<br/><br/>Second_paragraph</p>'
)
def test_getText_escapes_HTML(self):