Esempio n. 1
0
 def _get_data(self, pos):
     with open("tests/fixtures/portals-pt.html", "rb") as fh:
         html = fh.read()
     items = portals.parse('pt', html)
     self.assertEqual(len(items), 8)
     return items[pos]
Esempio n. 2
0
 def _get_data(self, pos):
     with open("tests/fixtures/portals-es.html", "rb") as fh:
         html = fh.read()
     items = portals.parse('es', html)
     self.assertEqual(len(items), 8)
     return items[pos]