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

Method test_item_view

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

Source from the content-addressed store, hash-verified

1254 assert "test2" in my_view
1255
1256 def test_item_view(self):
1257 a = Box()
1258 my_view = a.items()
1259 assert len(my_view) == 0
1260 a["test"] = "key_one"
1261 a.test2 = "key_two"
1262 assert len(my_view) == 2
1263 assert ("test", "key_one") in my_view
1264 assert ("test2", "key_two") in my_view
1265
1266 def test_box_propagation(self):
1267 # Issue 150

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected