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

Method test_item_view

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

Source from the content-addressed store, hash-verified

1517 assert "test2" in my_view
1518
1519 def test_item_view(self):
1520 a = Box()
1521 my_view = a.items()
1522 assert len(my_view) == 0
1523 a["test"] = "key_one"
1524 a.test2 = "key_two"
1525 assert len(my_view) == 2
1526 assert ("test", "key_one") in my_view
1527 assert ("test2", "key_two") in my_view
1528
1529 def test_box_propagation(self):
1530 # Issue 150

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected