Example #1
0
 def assertMines(self, html, others, expected):
     """
     Asserts that the given HTML strings will produce a tree_diff of the
     expected HTML string.
     """
     got = mine_page(html, others)
     self.assertEqual(got, expected)
Example #2
0
 def assertMines(self, html, others, expected):
     """
     Asserts that the given HTML strings will produce a tree_diff of the
     expected HTML string.
     """
     got = mine_page(html, others)
     self.assertEqual(got, expected)
Example #3
0
 def mine_page(self):
     """
     Runs templatemaker on this Page and returns the raw mined content, as
     a list of strings.
     """
     from ebdata.templatemaker.webmining import mine_page
     try:
         other_page = self.companion_page()
     except IndexError:
         return [self.html]
     return mine_page(self.html, [other_page.html])
Example #4
0
 def mine_page(self):
     """
     Runs templatemaker on this Page and returns the raw mined content, as
     a list of strings.
     """
     from ebdata.templatemaker.webmining import mine_page
     try:
         other_page = self.companion_page()
     except IndexError:
         return [self.html]
     return mine_page(self.html, [other_page.html])