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

Method test_or_boxes

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

Source from the content-addressed store, hash-verified

1374 BoxList() + Box()
1375
1376 def test_or_boxes(self):
1377 b = Box(c=1, d={"sub": 1}, e=1)
1378 c = dict(d={"val": 2}, e=4)
1379 assert b | c == Box(c=1, d={"val": 2}, e=4)
1380 with pytest.raises(BoxError):
1381 Box() | BoxList()
1382
1383 def test_ior_boxes(self):
1384 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