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

Method test_box_list_conversion

test/test_box_defaults.py:76–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 assert other.a.missing == DefaultBox()
75
76 def test_box_list_conversion(self):
77 bl = BoxList([{"a": 1}], box_class=DefaultBox)
78 assert type(bl[0]) is DefaultBox
79 assert bl[0].missing == DefaultBox()
80
81 def test_ddbox_uses_defaults_and_can_be_overridden(self):
82 dd = DDBox({"a": {"b": 1}})

Callers

nothing calls this directly

Calls 2

BoxListClass · 0.90
DefaultBoxClass · 0.85

Tested by

no test coverage detected