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)
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)