Example #1
0
 def send_feedparser_task(self):
     # send feedparser successfully parsing a feed
     path = os.path.join(
         resources.path("testdata/feedparsertests/feeds"),
         "http___feeds_miroguide_com_miroguide_featured.xml")
     html = open(path).read()
     workerprocess.run_feedparser(html, self.callback, self.errback)
Example #2
0
 def test_feedparser_error(self):
     # test feedparser failing to parse a feed
     workerprocess.startup()
     workerprocess.run_feedparser('FORCE EXCEPTION', self.callback,
             self.errback)
     self.runEventLoop(4.0)
     self.assertEquals(self.result, None)
     self.assert_(isinstance(self.error, ValueError))
Example #3
0
 def test_feedparser_error(self):
     # test feedparser failing to parse a feed
     workerprocess.startup()
     workerprocess.run_feedparser('FORCE EXCEPTION', self.callback,
                                  self.errback)
     self.runEventLoop(4.0)
     self.assertEquals(self.result, None)
     self.assert_(isinstance(self.error, ValueError))
Example #4
0
 def send_feedparser_task(self):
     # send feedparser successfully parsing a feed
     path = os.path.join(resources.path("testdata/feedparsertests/feeds"),
         "http___feeds_miroguide_com_miroguide_featured.xml")
     html = open(path).read()
     workerprocess.run_feedparser(html, self.callback, self.errback)