Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdgriffith/Box
/ test_default_json_array_behavior
Function
test_default_json_array_behavior
test/test_json_lines_strings.py:60–63 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
58
59
60
def
test_default_json_array_behavior():
61
values = BoxList([{
"a"
: 1}, {
"b"
: 2}])
62
assert json.loads(values.to_json()) == values.to_list()
63
assert BoxList.from_json(values.to_json()) == values
Callers
nothing calls this directly
Calls
4
to_json
Method · 0.95
to_list
Method · 0.95
BoxList
Class · 0.90
from_json
Method · 0.45
Tested by
no test coverage detected