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

Method test_ior_boxes

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

Source from the content-addressed store, hash-verified

1381 Box() | BoxList()
1382
1383 def test_ior_boxes(self):
1384 b = Box(c=1, d={"sub": 1}, e=1)
1385 c = dict(d={"val": 2}, e=4)
1386 b |= c
1387 assert b == Box(c=1, d={"val": 2}, e=4)
1388 with pytest.raises(BoxError):
1389 a = Box()
1390 a |= BoxList()
1391
1392 def test_ror_boxes(self):
1393 b = dict(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