cpython/Lib/json/tests/test_default.py

10 lines
208 B
Python
Raw Normal View History

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