示例#1
0
 def test_get_links_in_all_compiled_raw_soups(self):
     compiled_soups = hundredgreatest.raw_compiled_soups(self.soup)
     all_links = []
     for s in compiled_soups:
         all_links.append(hundredgreatest.all_links_as_strings(s))
     self.assertEqual(hundredgreatest.get_all_compiled_links(compiled_soups), all_links)
示例#2
0
 def test_get_all_links_as_strings(self):
     links_as_strings = set()
     for l in hundredgreatest.get_links_in_soup(self.soup):
         links_as_strings.add(str(l))
     self.assertEqual(hundredgreatest.all_links_as_strings(self.soup), links_as_strings)