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

Method test_item_view

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

Source from the content-addressed store, hash-verified

1582 assert "test2" in my_view
1583
1584 def test_item_view(self):
1585 a = Box()
1586 my_view = a.items()
1587 assert len(my_view) == 0
1588 a["test"] = "key_one"
1589 a.test2 = "key_two"
1590 assert len(my_view) == 2
1591 assert ("test", "key_one") in my_view
1592 assert ("test2", "key_two") in my_view
1593
1594 def test_box_propagation(self):
1595 # Issue 150

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected