Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 85420413f89fba7acd890a1b19ca566c81e93f67 authored by Georg Brandl on 31 July 2010, 12:06:51 UTC
From Martin: New UUIDs for the 3.2 release series.
Tip revision: 8542041
test_default.py
from unittest import TestCase

import json

class TestDefault(TestCase):
    def test_default(self):
        self.assertEquals(
            json.dumps(type, default=repr),
            json.dumps(repr(type)))
back to top