def test_response(self): e = VdsmException() self.assertEqual(e.response(), {"status": { "code": 0, "message": "Vdsm Exception" }})
def ping(self): raise VdsmException("Kaboom!!!")
def test_response(self): e = VdsmException() self.assertEqual(e.response(), {"status": e.info()})
def test_info(self): e = VdsmException() self.assertEqual(e.info(), {"code": 0, "message": str(e)})
def test_str(self): e = VdsmException() self.assertEqual(str(e), e.message)