def test_get_post_failing(self):
post_id = "urn:newsml:localhost:2016-04-06T14:36:37.255055:f2266f58-1e5c-4021-85af-e39087d94372"
db = await self.client.db
db.query = asynctest.CoroutineMock(side_effect=BotoCoreError)
res = await self.client.get_post(self.target_id, post_id)
assert res is None
评论列表
文章目录