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