with self.assertRaises(EngineException, msg="Accepted wrong project-role mappings") as e:
self.topic.edit(self.fake_session, uid, {"username": new_name, "project_role_mappings": new_prms})
self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code")
with self.assertRaises(EngineException, msg="Accepted wrong project-role mappings") as e:
self.topic.edit(self.fake_session, uid, {"username": new_name, "project_role_mappings": new_prms})
self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code")