(self)
| 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) |