def test_chosen_inline_result(self):
u = self.iqc.get_chosen_inline_result("testid")
self.assertIsInstance(u, Update)
self.assertIsInstance(u.chosen_inline_result, ChosenInlineResult)
self.assertIsInstance(u.chosen_inline_result.from_user, User)
self.assertEqual(u.chosen_inline_result.result_id, "testid")
with self.assertRaisesRegexp(AttributeError, "chosen_inline_result"):
self.iqc.get_chosen_inline_result()
评论列表
文章目录