diff options
Diffstat (limited to 'Lib/json/tests/test_default.py')
-rw-r--r-- | Lib/json/tests/test_default.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/json/tests/test_default.py b/Lib/json/tests/test_default.py new file mode 100644 index 0000000..49f05ad --- /dev/null +++ b/Lib/json/tests/test_default.py @@ -0,0 +1,9 @@ +from unittest import TestCase + +import json + +class TestDefault(TestCase): + def test_default(self): + self.assertEquals( + json.dumps(type, default=repr), + json.dumps(repr(type))) |