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

Method test_msgpack_files

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

Source from the content-addressed store, hash-verified

1205 assert Box.from_msgpack(packed, strict_map_key=False) == box1
1206
1207 def test_msgpack_files(self):
1208 box1 = Box(test_dict)
1209 box1.to_msgpack(filename=tmp_msgpack_file)
1210 assert Box.from_msgpack(filename=tmp_msgpack_file) == box1
1211
1212 def test_msgpack_no_input(self):
1213 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