MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_msgpack_files

Method test_msgpack_files

test/test_box.py:1535–1538  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1533 assert Box.from_msgpack(packed, strict_map_key=False) == box1
1534
1535 def test_msgpack_files(self):
1536 box1 = Box(test_dict)
1537 box1.to_msgpack(filename=tmp_msgpack_file)
1538 assert Box.from_msgpack(filename=tmp_msgpack_file) == box1
1539
1540 def test_msgpack_no_input(self):
1541 with pytest.raises(BoxError):

Callers

nothing calls this directly

Calls 3

to_msgpackMethod · 0.95
BoxClass · 0.90
from_msgpackMethod · 0.45

Tested by

no test coverage detected