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

Method test_dir

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

Source from the content-addressed store, hash-verified

317 assert len(wide.splitlines()) < len(narrow.splitlines())
318
319 def test_dir(self):
320 a = Box(test_dict, camel_killer_box=True)
321 assert "key1" in dir(a)
322 assert "not$allowed" not in dir(a)
323 assert "key4" in a["key 2"]
324 for item in ("to_yaml", "to_dict", "to_json"):
325 assert item in dir(a)
326
327 assert a.big_camel == "hi"
328 assert "big_camel" in dir(a)
329
330 def test_update(self):
331 a = Box(test_dict)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected