def test_returns_none_if_not_found(self): b = Bots(self.settings) bot = b.get_named("sss") self.assertIsNone(bot)
def test_can_request_1_bot(self): b = Bots(self.settings) item = b.get_item(item_id="88c98ee21f3895749ec3888b930017be") self.assertEqual(item.name, "Testbots Bot")
def test_can_request_bots_with_name(self): b = Bots(self.settings) bot = b.get_named("Testbots Bot") self.assertIsNotNone(bot)
def test_can_request_bots(self): b = Bots(self.settings) assert len(b.get_all()) == 1