2011-05-14 00:47:51 -03:00
|
|
|
from test.json_tests import PyTest, CTest
|
2008-05-08 11:29:10 -03:00
|
|
|
|
|
|
|
|
2011-05-14 00:47:51 -03:00
|
|
|
class TestDefault:
|
2008-05-08 11:29:10 -03:00
|
|
|
def test_default(self):
|
2010-11-20 15:04:17 -04:00
|
|
|
self.assertEqual(
|
2011-05-14 00:47:51 -03:00
|
|
|
self.dumps(type, default=repr),
|
|
|
|
self.dumps(repr(type)))
|
|
|
|
|
|
|
|
|
|
|
|
class TestPyDefault(TestDefault, PyTest): pass
|
|
|
|
class TestCDefault(TestDefault, CTest): pass
|