Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdgriffith/Box
/ test_from_json
Method
test_from_json
test/test_box.py:444–447 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
442
assert bx.total == 4443.52
443
444
def
test_from_json(self):
445
bx = Box.from_json(json.dumps(test_dict))
446
assert isinstance(bx, Box)
447
assert bx.key1 ==
"value1"
448
449
def
test_from_yaml(self):
450
yaml = YAML(typ=
"safe"
)
Callers
nothing calls this directly
Calls
1
from_json
Method · 0.45
Tested by
no test coverage detected