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

Method test_odict_values

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

Source from the content-addressed store, hash-verified

238 assert type(keys) is type(results)
239
240 def test_odict_values(self):
241 values = collections.OrderedDict([("a", 1), ("b", 2)]).values()
242 results = pickle_depickle(values)
243 self.assertEqual(list(results), list(values))
244 assert type(values) is type(results)
245
246 def test_odict_items(self):
247 items = collections.OrderedDict([("a", 1), ("b", 2)]).items()

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected