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

Method test_iadd_boxes

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

Source from the content-addressed store, hash-verified

1353 c.one.four = "1.4"
1354
1355 def test_iadd_boxes(self):
1356 b = Box(c=1, d={"sub": 1}, e=1)
1357 c = dict(d={"val": 2}, e=4)
1358 b += c
1359 assert b == Box(c=1, d={"sub": 1, "val": 2}, e=4)
1360 with pytest.raises(BoxError):
1361 a = Box()
1362 a += BoxList()
1363
1364 def test_radd_boxes(self):
1365 a = dict(a=1)

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
BoxListClass · 0.90

Tested by

no test coverage detected