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

Method test_odict_keys

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

Source from the content-addressed store, hash-verified

233 assert isinstance(results, _collections_abc.dict_items)
234
235 def test_odict_keys(self):
236 keys = collections.OrderedDict([("a", 1), ("b", 2)]).keys()
237 results = pickle_depickle(keys)
238 self.assertEqual(results, keys)
239 assert type(keys) is type(results)
240
241 def test_odict_values(self):
242 values = collections.OrderedDict([("a", 1), ("b", 2)]).values()

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected