MCPcopy 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
60def 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_jsonMethod · 0.95
to_listMethod · 0.95
BoxListClass · 0.90
from_jsonMethod · 0.45

Tested by

no test coverage detected