diff --git a/Products/ATContentTypes/tests/test_atdocument.py b/Products/ATContentTypes/tests/test_atdocument.py index de5b68f0..8e9abc7b 100644 --- a/Products/ATContentTypes/tests/test_atdocument.py +++ b/Products/ATContentTypes/tests/test_atdocument.py @@ -95,21 +95,15 @@ def test_x_safe_html(self): doc = self._ATCT mimetypes = ( ('text/html', '

test

'), - # MTR doens't know about text/stx, and transforming + # MTR does not know about text/stx, and transforming # doubles the tags. Yuck. - ('text/structured', '

test

\n'), + ('text/structured', '

test

\n'), ) for mimetype, expected in mimetypes: # scrub html is removing unallowed tags text = "

test

" doc.setText(text, mimetype=mimetype) txt = doc.getText() - # fix for lxml based safe HTML cleaner - # nested p-tags are not allowed and therefore removed - # put expected string to mimetypes tuple above and remove condition - # once PLIP 1441 is merged. - if '

' in txt: - expected = '

test

\n' self.assertEqual(txt, expected, (txt, expected, mimetype)) def test_get_size(self):