Ezio Melotti | 66f2ea0 | 2013-08-08 15:03:45 +0300 | [diff] [blame] | 1 | from test.test_json import PyTest, CTest |
Christian Heimes | 9054000 | 2008-05-08 14:29:10 +0000 | [diff] [blame] | 2 | |
Christian Heimes | 9054000 | 2008-05-08 14:29:10 +0000 | [diff] [blame] | 3 | |
Ezio Melotti | 6b60fb9 | 2011-05-14 06:47:51 +0300 | [diff] [blame] | 4 | class TestDefault: |
Christian Heimes | 9054000 | 2008-05-08 14:29:10 +0000 | [diff] [blame] | 5 | def test_default(self): |
Ezio Melotti | b3aedd4 | 2010-11-20 19:04:17 +0000 | [diff] [blame] | 6 | self.assertEqual( |
Ezio Melotti | 6b60fb9 | 2011-05-14 06:47:51 +0300 | [diff] [blame] | 7 | self.dumps(type, default=repr), |
| 8 | self.dumps(repr(type))) |
| 9 | |
| 10 | |
| 11 | class TestPyDefault(TestDefault, PyTest): pass |
| 12 | class TestCDefault(TestDefault, CTest): pass |