2011-05-14 00:24:53 -03:00
|
|
|
from json.tests import PyTest, CTest
|
2008-05-05 17:21:38 -03:00
|
|
|
|
|
|
|
|
2011-05-14 00:24:53 -03:00
|
|
|
class TestDefault(object):
|
2008-05-05 17:21:38 -03:00
|
|
|
def test_default(self):
|
2010-11-21 09:34:58 -04:00
|
|
|
self.assertEqual(
|
2011-05-14 00:24:53 -03:00
|
|
|
self.dumps(type, default=repr),
|
|
|
|
self.dumps(repr(type)))
|
|
|
|
|
|
|
|
|
|
|
|
class TestPyDefault(TestDefault, PyTest): pass
|
|
|
|
class TestCDefault(TestDefault, CTest): pass
|