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

Method test_msgpack_files

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

Source from the content-addressed store, hash-verified

1468 assert Box.from_msgpack(packed, strict_map_key=False) == box1
1469
1470 def test_msgpack_files(self):
1471 box1 = Box(test_dict)
1472 box1.to_msgpack(filename=tmp_msgpack_file)
1473 assert Box.from_msgpack(filename=tmp_msgpack_file) == box1
1474
1475 def test_msgpack_no_input(self):
1476 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