Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
Program Files
/
Python312
/
Lib
/
test
/
test_json
/
Edit File Name :
test_default.py
import collections from test.test_json import PyTest, CTest class TestDefault: def test_default(self): self.assertEqual( self.dumps(type, default=repr), self.dumps(repr(type))) def test_ordereddict(self): od = collections.OrderedDict(a=1, b=2, c=3, d=4) od.move_to_end('b') self.assertEqual( self.dumps(od), '{"a": 1, "c": 3, "d": 4, "b": 2}') self.assertEqual( self.dumps(od, sort_keys=True), '{"a": 1, "b": 2, "c": 3, "d": 4}') class TestPyDefault(TestDefault, PyTest): pass class TestCDefault(TestDefault, CTest): pass
Save