def test_clean4(self): """Test apply the default clean to HTML document.""" tree = html.fromstring(HTML4) clean(tree) self.assertEqual(CLEAN4, tostring(tree, method='html').decode())
def test_clean2(self): """Test apply the default clean to HTML document.""" tree = html.fromstring(HTML2) clean(tree) self.assertEqual(CLEAN2, tostring(tree).decode())