def test_get_packs_for_bot(self): bot_id = 199 responses.add(responses.GET, url="https://news.kae.re/api/0.1/bots/199.json", body=Data.bot_list,match_querystring=True,status=200) packlist = Packlist() packs = packlist.get_packs_for_bot(bot_id) self.assertTrue(len(packs) > 0)
def test_get_bot_list(self): responses.add(responses.GET, url="https://news.kae.re/api/0.1.json", body=Data.bot_list,match_querystring=True,status=200) packlist = Packlist() botlist = packlist.get_bot_list() self.assertTrue(len(botlist) > 0)