File: test_default.py

package info (click to toggle)
python-hjson 3.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,188 kB
  • sloc: python: 3,098; makefile: 13; sh: 8
file content (9 lines) | stat: -rw-r--r-- 224 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from unittest import TestCase

import hjson as json

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