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

Method test_box_safe_references

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

Source from the content-addressed store, hash-verified

1597 hash(Box({"x": [Box({"y": 2})]}, frozen_box=True))
1598
1599 def test_box_safe_references(self):
1600 a = Box(c=5)
1601 b = Box(a=a)
1602 assert id(a) != id(b.a)
1603
1604 def test_default_box_restricted_calls(self):
1605 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