summaryrefslogtreecommitdiffstats
path: root/Lib/json/tests/test_default.py
blob: 49f05ad660c6074d6fc6efda69d4b45c8432baea (plain)
1
2
3
4
5
6
7
8
9
from unittest import TestCase

import json

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