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

Method test_odict_keys

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

Source from the content-addressed store, hash-verified

232 assert isinstance(results, _collections_abc.dict_items)
233
234 def test_odict_keys(self):
235 keys = collections.OrderedDict([("a", 1), ("b", 2)]).keys()
236 results = pickle_depickle(keys)
237 self.assertEqual(results, keys)
238 assert type(keys) is type(results)
239
240 def test_odict_values(self):
241 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