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

Method test_bad_recursive

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

Source from the content-addressed store, hash-verified

1174 assert not bx.keys()
1175
1176 def test_bad_recursive(self):
1177 b = Box()
1178 bl = b.setdefault("l", [])
1179 bl.append(["foo"])
1180 assert bl == [["foo"]], bl
1181
1182 def test_dots(self):
1183 b = Box(movie_data.copy(), box_dots=True)

Callers

nothing calls this directly

Calls 3

setdefaultMethod · 0.95
BoxClass · 0.90
appendMethod · 0.80

Tested by

no test coverage detected