home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / local / simplejson / tests / test_default.py < prev    next >
Encoding:
Python Source  |  2009-07-20  |  222 b   |  10 lines

  1. from unittest import TestCase
  2.  
  3. import simplejson as json
  4.  
  5. class TestDefault(TestCase):
  6.     def test_default(self):
  7.         self.assertEquals(
  8.             json.dumps(type, default=repr),
  9.             json.dumps(repr(type)))
  10.