diff options
Diffstat (limited to 'lib/python2.7/json/tests/test_default.py')
-rw-r--r-- | lib/python2.7/json/tests/test_default.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python2.7/json/tests/test_default.py b/lib/python2.7/json/tests/test_default.py new file mode 100644 index 0000000..c2a07f6 --- /dev/null +++ b/lib/python2.7/json/tests/test_default.py @@ -0,0 +1,12 @@ +from json.tests import PyTest, CTest + + +class TestDefault(object): + def test_default(self): + self.assertEqual( + self.dumps(type, default=repr), + self.dumps(repr(type))) + + +class TestPyDefault(TestDefault, PyTest): pass +class TestCDefault(TestDefault, CTest): pass |