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

Method test_missing_dotted_key

test/test_coverage_paths.py:200–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 assert cb.to_dict() == {"a": 2, 1: "one"}
199
200 def test_missing_dotted_key(self):
201 cb = ConfigBox({"a": {"b": 1}}, box_dots=True)
202 assert "nope.x" not in cb
203 assert cb["A.B"] == 1
204
205 def test_index_rebuilds_after_direct_dict_write(self):
206 cb = ConfigBox({"a": 1})

Callers

nothing calls this directly

Calls 1

ConfigBoxClass · 0.90

Tested by

no test coverage detected