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

View File

@ -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)
-------------------

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):