PATH:
opt
/
bitninja-python-dojo
/
embedded
/
lib
/
python3.9
/
test
/
test_json
from test.test_json import PyTest, CTest # from http://json.org/JSON_checker/test/pass3.json JSON = r''' { "JSON Test Pattern pass3": { "The outermost value": "must be an object or array.", "In this test": "It is an object." } } ''' class TestPass3: def test_parse(self): # test in/out equivalence and parsing res = self.loads(JSON) out = self.dumps(res) self.assertEqual(res, self.loads(out)) class TestPyPass3(TestPass3, PyTest): pass class TestCPass3(TestPass3, CTest): pass
[-] test_separators.py
[edit]
[-] test_speedups.py
[edit]
[-] test_indent.py
[edit]
[-] test_decode.py
[edit]
[-] test_dump.py
[edit]
[+]
..
[-] test_unicode.py
[edit]
[-] test_float.py
[edit]
[-] test_encode_basestring_ascii.py
[edit]
[-] __main__.py
[edit]
[-] test_default.py
[edit]
[-] test_fail.py
[edit]
[-] test_tool.py
[edit]
[-] test_enum.py
[edit]
[+]
__pycache__
[-] test_pass3.py
[edit]
[-] test_pass2.py
[edit]
[-] __init__.py
[edit]
[-] test_scanstring.py
[edit]
[-] test_recursion.py
[edit]
[-] test_pass1.py
[edit]