MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_box_safe_references

Method test_box_safe_references

test/test_box.py:1534–1537  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1532 hash(Box({"x": [Box({"y": 2})]}, frozen_box=True))
1533
1534 def test_box_safe_references(self):
1535 a = Box(c=5)
1536 b = Box(a=a)
1537 assert id(a) != id(b.a)
1538
1539 def test_default_box_restricted_calls(self):
1540 a = Box(default_box=True, default_box_create_on_get=True)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected