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

Method test_dir

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

Source from the content-addressed store, hash-verified

268 assert len(wide.splitlines()) < len(narrow.splitlines())
269
270 def test_dir(self):
271 a = Box(test_dict, camel_killer_box=True)
272 assert "key1" in dir(a)
273 assert "not$allowed" not in dir(a)
274 assert "key4" in a["key 2"]
275 for item in ("to_yaml", "to_dict", "to_json"):
276 assert item in dir(a)
277
278 assert a.big_camel == "hi"
279 assert "big_camel" in dir(a)
280
281 def test_update(self):
282 a = Box(test_dict)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected