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

Method test_or_boxes

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

Source from the content-addressed store, hash-verified

1309 BoxList() + Box()
1310
1311 def test_or_boxes(self):
1312 b = Box(c=1, d={"sub": 1}, e=1)
1313 c = dict(d={"val": 2}, e=4)
1314 assert b | c == Box(c=1, d={"val": 2}, e=4)
1315 with pytest.raises(BoxError):
1316 Box() | BoxList()
1317
1318 def test_ior_boxes(self):
1319 b = Box(c=1, d={"sub": 1}, e=1)

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
BoxListClass · 0.90

Tested by

no test coverage detected