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:
parent
23a1f02e2f
commit
085567431f
@ -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)
|
||||
-------------------
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user