FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Lib/test/test_json/test_pass2.py at master · python-emscripten/cpython · GitHub
python-emscripten
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Lib
/
test
/
test_json
/
test_pass2.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (13 loc) · 448 Bytes
Breadcrumbs
cpython
/
Lib
/
test
/
test_json
/
test_pass2.py
Copy path
File metadata and controls
18 lines (13 loc) · 448 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from
test
.
test_json
import
PyTest
,
CTest
# from http://json.org/JSON_checker/test/pass2.json
JSON
=
r'''
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
'''
class
TestPass2
:
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
TestPyPass2
(
TestPass2
,
PyTest
):
pass
class
TestCPass2
(
TestPass2
,
CTest
):
pass
Back
|
FazBrowse Home
|
New Git URL