]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/test_separators.py
2 from json
.tests
import PyTest
, CTest
5 class TestSeparators(object):
6 def test_separators(self
):
7 h
= [['blorpie'], ['whoops'], [], 'd-shtaeou', 'd-nthiouh', 'i-vhbjkhnth',
8 {'nifty': 87}, {'field': 'yes', 'morefield': False} ]
10 expect
= textwrap
.dedent("""\
33 d2
= self
.dumps(h
, indent
=2, sort_keys
=True, separators
=(' ,', ' : '))
38 self
.assertEqual(h1
, h
)
39 self
.assertEqual(h2
, h
)
40 self
.assertEqual(d2
, expect
)
43 class TestPySeparators(TestSeparators
, PyTest
): pass
44 class TestCSeparators(TestSeparators
, CTest
): pass