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

Method test_value_view

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

Source from the content-addressed store, hash-verified

1497 assert box2.nonexistent == Box()
1498
1499 def test_value_view(self):
1500 a = Box()
1501 my_view = a.values()
1502 assert len(my_view) == 0
1503 a["test"] = "key_one"
1504 a.test2 = "key_two"
1505 assert len(my_view) == 2
1506 assert "key_one" in my_view
1507 assert "key_two" in my_view
1508
1509 def test_key_view(self):
1510 a = Box()

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected