def setUp(self): try: channel = testUtils.get_channel("rss") self.rss = rss.RSSAPI(channel) self.assertIsNotNone(self.rss.url) except Exception as e: print "Fail to initialize RSS channel. Please make sure channel.json\ has an entry for RSS platform, and it has 'url' field" raise e; self.rss.auth()
def setUp(self): try: channel = testUtils.get_channel("renren") self.renren = renren.RenrenAPI(channel) self.assertIsNotNone(self.renren.app_key) self.assertIsNotNone(self.renren.app_secret) except Exception as e: print "Fail to initialize Renren channel. Please make sure channel.json\ has an account on renren platform, and app_key,app_serect are valid" raise e
def setUp(self): try: channel = testUtils.get_channel("qq") self.qq = qq.QQAPI(channel) self.assertIsNotNone(self.qq.app_key) self.assertIsNotNone(self.qq.app_secret) except Exception as e: print "Fail to initialize Sina channel. Please make sure channel.json\ has a account on qq platform, and app_key,app_serect are valid" raise e;
def setUp(self): try: channel = testUtils.get_channel("qq") self.qq = qq.QQAPI(channel) self.assertIsNotNone(self.qq.app_key) self.assertIsNotNone(self.qq.app_secret) except Exception as e: print "Fail to initialize Sina channel. Please make sure channel.json\ has a account on qq platform, and app_key,app_serect are valid" raise e
def setUp(self): try: channel = testUtils.get_channel("rss") self.rss = rss.RSSAPI(channel) self.assertIsNotNone(self.rss.url) except Exception as e: print "Fail to initialize RSS channel. Please make sure channel.json\ has an entry for RSS platform, and it has 'url' field" raise e self.rss.auth()