Ejemplo n.º 1
0
 def test_hits_group_total_wrong(self):
     html = "<html>bad html</html>"
     expected = None
     result = parser.hits_group_total(html)
     self.assertEqual(result, expected)
Ejemplo n.º 2
0
 def test_hits_group_total(self):
     html = self.get_html("hitslist.html")
     expected = 2076
     result = parser.hits_group_total(html)
     self.assertEqual(result, expected)