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

Method test_ior_boxes

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

Source from the content-addressed store, hash-verified

1316 Box() | BoxList()
1317
1318 def test_ior_boxes(self):
1319 b = Box(c=1, d={"sub": 1}, e=1)
1320 c = dict(d={"val": 2}, e=4)
1321 b |= c
1322 assert b == Box(c=1, d={"val": 2}, e=4)
1323 with pytest.raises(BoxError):
1324 a = Box()
1325 a |= BoxList()
1326
1327 def test_ror_boxes(self):
1328 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