MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_eval_objects_cycle

Function test_eval_objects_cycle

tests/python/test_dicts.py:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def test_eval_objects_cycle():
43 pyObj = pm.eval("Object({a:1.0, b:2.0, recursive: function() { this.recursive = this; return this; }}.recursive())")
44
45 assert pyObj['a'] == 1.0
46 assert pyObj['b'] == 2.0
47 assert pyObj['recursive'] == pyObj
48
49
50def test_eval_objects_proxy_get():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected