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

Method test_load_namespace

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

Source from the content-addressed store, hash-verified

476 self.assertEqual(obj, returned_obj)
477
478 def test_load_namespace(self):
479 obj = 1, 2, 3, 4
480 bio = io.BytesIO()
481 cloudpickle.dump(obj, bio)
482 bio.seek(0)
483 returned_obj = cloudpickle.load(bio)
484 self.assertEqual(obj, returned_obj)
485
486 def test_generator(self):
487 def some_generator(cnt):

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected