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

Method test_bad_recursive

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

Source from the content-addressed store, hash-verified

911 assert not bx.keys()
912
913 def test_bad_recursive(self):
914 b = Box()
915 bl = b.setdefault("l", [])
916 bl.append(["foo"])
917 assert bl == [["foo"]], bl
918
919 def test_dots(self):
920 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