MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / test_dict_items

Method test_dict_items

tests/cloudpickle_test.py:229–233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

227 assert isinstance(results, _collections_abc.dict_values)
228
229 def test_dict_items(self):
230 items = {"a": 1, "b": 2}.items()
231 results = pickle_depickle(items)
232 self.assertEqual(results, items)
233 assert isinstance(results, _collections_abc.dict_items)
234
235 def test_odict_keys(self):
236 keys = collections.OrderedDict([("a", 1), ("b", 2)]).keys()

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected