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