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

Method test_contains

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

Source from the content-addressed store, hash-verified

1029 assert bx_dot.get("def.not.in.the.box", 4) == 4
1030
1031 def test_contains(self):
1032 bx_dot = Box(a=Box(b=Box(c=Box())), box_dots=True)
1033 assert "a.b.c" in bx_dot
1034 assert "a.b.c.d" not in bx_dot
1035
1036 def test_get_default_box(self):
1037 bx = Box(default_box=True)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected