Ejemplo n.º 1
0
 def testCrawlerCannotFindNonExistentRegPageFromUrl(self):
     """Verify that the crawler won't find a non existent reg page
 from the given URL."""
     c = webforms_aggregator.Crawler(self.url2)
     self.assertFalse(c.Run(),
                      msg='Crawler found a non existent reg page of "%s"' %
                      self.url1)
Ejemplo n.º 2
0
 def testCrawlerFindsRegPageFromUrl(self):
   """Verify that the crawler is able to find a reg page from the given URL."""
   c = webforms_aggregator.Crawler(self.url2)
   self.assertTrue(
       c.Run(), msg='Crawler could not find the reg page of "%s"' % self.url2)