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

Method test_dict_keys

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

Source from the content-addressed store, hash-verified

215 )
216
217 def test_dict_keys(self):
218 keys = {"a": 1, "b": 2}.keys()
219 results = pickle_depickle(keys)
220 self.assertEqual(results, keys)
221 assert isinstance(results, _collections_abc.dict_keys)
222
223 def test_dict_values(self):
224 values = {"a": 1, "b": 2}.values()

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected