PageRenderTime 34ms CodeModel.GetById 31ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Lib/json/tests/test_default.py

http://unladen-swallow.googlecode.com/
Python | 9 lines | 7 code | 2 blank | 0 comment | 0 complexity | 25d87397ad30eca57135ba27f9001e5d MD5 | raw file
1from unittest import TestCase
2
3import json
4
5class TestDefault(TestCase):
6    def test_default(self):
7        self.assertEquals(
8            json.dumps(type, default=repr),
9            json.dumps(repr(type)))