示例#1
0
 def test_response(self):
     e = VdsmException()
     self.assertEqual(e.response(), {"status": e.info()})
示例#2
0
 def test_info(self):
     e = VdsmException()
     self.assertEqual(e.info(), {"code": 0, "message": str(e)})
示例#3
0
 def test_info(self):
     e = VdsmException()
     self.assertEqual(e.info(), {"code": 0, "message": str(e)})
示例#4
0
 def test_response(self):
     e = VdsmException()
     self.assertEqual(e.response(), {"status": e.info()})
示例#5
0
 def test_str(self):
     e = VdsmException()
     self.assertEqual(str(e), e.message)