def test_response(self): e = ContextException("not hot enough", temperature=42) self.assertEqual(e.response(), {"status": e.info()})
def test_info(self): e = ContextException("not hot enough", temperature=42) self.assertEqual(e.info(), {"code": 0, "message": str(e)})