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

Method test_values

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

Source from the content-addressed store, hash-verified

960 Box(movie_data, conversion_box=False, box_duplicates="error")
961
962 def test_values(self):
963 b = Box()
964 b.foo = {}
965 assert isinstance(list(b.values())[0], Box)
966 c = Box()
967 c.foohoo = []
968 assert isinstance(list(c.values())[0], BoxList)
969 d = Box(movie_data)
970 assert len(movie_data["movies"].values()) == len(d.movies.values())
971
972 def test_items(self):
973 b = Box()

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected