Esempio n. 1
0
 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())
Esempio n. 2
0
 def test_clean2(self):
     """Test apply the default clean to HTML document."""
     tree = html.fromstring(HTML2)
     clean(tree)
     self.assertEqual(CLEAN2, tostring(tree).decode())