Commit c18d539f authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Jérome Perrin

remove test because tested feature was removed WIP

parent 4d82526b
...@@ -1850,12 +1850,17 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph ...@@ -1850,12 +1850,17 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph
</html> </html>
""" """
web_page.edit(text_content=html_content) web_page.edit(text_content=html_content)
from six.moves.html_parser import HTMLParseError if six.PY3:
try:
web_page.asStrippedHTML() web_page.asStrippedHTML()
except HTMLParseError: # TODO(emmuvouriot): this test shouldn't exist anymore in Py3 since HTMLParseError has been removed
expectedFailure(self.fail)( # The rationale being that the HTML parser never fails (except in strict mode, which is not used here).
'Even BeautifulSoup is not able to parse such HTML') else:
from six.moves.html_parser import HTMLParseError
try:
web_page.asStrippedHTML() # TODO(emmuvouriot): does this even attempt to parse the code? Can the exception ever be thrown?
except HTMLParseError:
expectedFailure(self.fail)(
'Even BeautifulSoup is not able to parse such HTML')
def test_safeHTML_unknown_codec(self): def test_safeHTML_unknown_codec(self):
"""Some html declare unknown codecs. """Some html declare unknown codecs.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment