{ "error_code": "500", "data": { "zhuang_tai": "token_no", "times": "1764538817" } }
from unittest import TestCase
import simplejson as json
class TestDefault(TestCase):
def test_default(self):
self.assertEqual(
json.dumps(type, default=repr),
json.dumps(repr(type)))