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