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

Method test_value_view

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

Source from the content-addressed store, hash-verified

1562 assert box2.nonexistent == Box()
1563
1564 def test_value_view(self):
1565 a = Box()
1566 my_view = a.values()
1567 assert len(my_view) == 0
1568 a["test"] = "key_one"
1569 a.test2 = "key_two"
1570 assert len(my_view) == 2
1571 assert "key_one" in my_view
1572 assert "key_two" in my_view
1573
1574 def test_key_view(self):
1575 a = Box()

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected