MCPcopy Index your code
hub / github.com/cloudpipe/cloudpickle / test_simple_class

Function test_simple_class

tests/test_backward_compat.py:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_simple_class():
44 SimpleClass = load_obj("simple_class.pkl")
45 c = SimpleClass(1)
46 assert hasattr(c, "attribute")
47 assert c.attribute == 1
48
49 # test class tracking feature
50 assert SimpleClass is load_obj("simple_class.pkl")
51
52
53def test_dynamic_module():

Callers

nothing calls this directly

Calls 2

load_objFunction · 0.85
SimpleClassClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…