test, setup: requires lxml >= 3.1.0 (fixes html cleaning issue)
This commit is contained in:
parent
51b0e9c153
commit
aa2b4f6e67
3 changed files with 3 additions and 3 deletions
|
|
@ -100,7 +100,7 @@ class SanitisationTest(helpers.SatTestCase):
|
|||
return d
|
||||
|
||||
def test_removeXHTMLMarkups(self):
|
||||
expected = u""" a link another link a paragraph secret EVIL! of EVIL! Password: annoying EVIL!spam spam SPAM! """
|
||||
expected = u""" a link another link a paragraph secret EVIL! of EVIL! Password: annoying EVIL! spam spam SPAM! """
|
||||
result = self.text_syntaxes._removeMarkups(self.EVIL_HTML1)
|
||||
self.assertEqual(re.sub(r"\s+", " ", result).rstrip(), expected.rstrip())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue