Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.122
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
python3.10 /
test /
test_json /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
__init__.py
2.14
KB
-rw-r--r--
2025-06-04 09:23
__main__.py
71
B
-rw-r--r--
2025-06-04 09:23
test_decode.py
4.39
KB
-rw-r--r--
2025-06-04 09:23
test_default.py
605
B
-rw-r--r--
2025-06-04 09:23
test_dump.py
2.35
KB
-rw-r--r--
2025-06-04 09:23
test_encode_basestring_ascii.py
2.21
KB
-rw-r--r--
2025-06-04 09:23
test_enum.py
3.94
KB
-rw-r--r--
2025-06-04 09:23
test_fail.py
8.86
KB
-rw-r--r--
2025-06-04 09:23
test_float.py
1.18
KB
-rw-r--r--
2025-06-04 09:23
test_indent.py
1.78
KB
-rw-r--r--
2025-06-04 09:23
test_pass1.py
1.79
KB
-rw-r--r--
2025-06-04 09:23
test_pass2.py
449
B
-rw-r--r--
2025-06-04 09:23
test_pass3.py
545
B
-rw-r--r--
2025-06-04 09:23
test_recursion.py
3.27
KB
-rw-r--r--
2025-06-04 09:23
test_scanstring.py
4.55
KB
-rw-r--r--
2025-06-04 09:23
test_separators.py
1.29
KB
-rw-r--r--
2025-06-04 09:23
test_speedups.py
3.25
KB
-rw-r--r--
2025-06-04 09:23
test_tool.py
7.34
KB
-rw-r--r--
2025-06-04 09:23
test_unicode.py
4.04
KB
-rw-r--r--
2025-06-04 09:23
Save
Rename
import textwrap from test.test_json import PyTest, CTest class TestSeparators: def test_separators(self): h = [['blorpie'], ['whoops'], [], 'd-shtaeou', 'd-nthiouh', 'i-vhbjkhnth', {'nifty': 87}, {'field': 'yes', 'morefield': False} ] expect = textwrap.dedent("""\ [ [ "blorpie" ] , [ "whoops" ] , [] , "d-shtaeou" , "d-nthiouh" , "i-vhbjkhnth" , { "nifty" : 87 } , { "field" : "yes" , "morefield" : false } ]""") d1 = self.dumps(h) d2 = self.dumps(h, indent=2, sort_keys=True, separators=(' ,', ' : ')) h1 = self.loads(d1) h2 = self.loads(d2) self.assertEqual(h1, h) self.assertEqual(h2, h) self.assertEqual(d2, expect) def test_illegal_separators(self): h = {1: 2, 3: 4} self.assertRaises(TypeError, self.dumps, h, separators=(b', ', ': ')) self.assertRaises(TypeError, self.dumps, h, separators=(', ', b': ')) self.assertRaises(TypeError, self.dumps, h, separators=(b', ', b': ')) class TestPySeparators(TestSeparators, PyTest): pass class TestCSeparators(TestSeparators, CTest): pass