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

Method test_missing_still_missing

test/test_box_keys_8.py:44–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 assert b.to_dict() == {"uno": {}}
43
44 def test_missing_still_missing(self):
45 b = Box({"uno": {2: "tres"}}, box_dots=True)
46 with pytest.raises(BoxKeyError):
47 b["uno.3"]
48 b2 = Box({"uno": {}}, box_dots=True, default_box=True)
49 assert b2["uno.3"] == Box()
50
51 def test_not_digits_or_without_box_dots(self):
52 b = Box({"uno": {2: "tres", 1.5: "float"}}, box_dots=True)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected