cpython/Lib/test/json_tests/test_default.py

10 lines
207 B
Python

from unittest import TestCase
import json
class TestDefault(TestCase):
def test_default(self):
self.assertEqual(
json.dumps(type, default=repr),
json.dumps(repr(type)))