(self)
| 26 | assert Box()._box_config["default_box"] is False |
| 27 | |
| 28 | def test_explicit_option_wins(self): |
| 29 | b = DefaultBox(default_box=False) |
| 30 | with pytest.raises(AttributeError): |
| 31 | b.missing |
| 32 | |
| 33 | def test_nested_boxes_keep_class_and_options(self): |
| 34 | b = DefaultBox({"a": {"b": {"c": 1}}, "l": [{"x": 1}]}) |