def test_str_with_args(self): e = GeneralException("foo", "bar") self.assertEqual(str(e), "General Exception: ('foo', 'bar')")
def test_info(self): e = GeneralException() self.assertEqual(e.info(), {"code": 100, "message": str(e)})
def test_str(self): e = GeneralException() self.assertEqual(str(e), "General Exception: ()")