def testGet(self):
assert self.app.get("/problems/1").status_code == 404
exampleProblem = copy.deepcopy(EXAMPLE_PROBLEM)
self.db.problem.insert_one(exampleProblem)
newProblem = json.loads(self.app.get("/problems/"+str(exampleProblem['_id'])).data.decode("utf-8"))
assert areDicsEqual(exampleProblem, newProblem)
评论列表
文章目录