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

Method test_iadd_boxes

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

Source from the content-addressed store, hash-verified

1288 c.one.four = "1.4"
1289
1290 def test_iadd_boxes(self):
1291 b = Box(c=1, d={"sub": 1}, e=1)
1292 c = dict(d={"val": 2}, e=4)
1293 b += c
1294 assert b == Box(c=1, d={"sub": 1, "val": 2}, e=4)
1295 with pytest.raises(BoxError):
1296 a = Box()
1297 a += BoxList()
1298
1299 def test_radd_boxes(self):
1300 a = dict(a=1)

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
BoxListClass · 0.90

Tested by

no test coverage detected