(self)
| 1678 | assert box4 == Box({"data": [{"a": 1}]}), box4 |
| 1679 | |
| 1680 | def test_box_from_empty_yaml(self): |
| 1681 | out = Box.from_yaml("---") |
| 1682 | assert out == Box() |
| 1683 | |
| 1684 | out2 = BoxList.from_yaml("---") |
| 1685 | assert out2 == BoxList() |
| 1686 | |
| 1687 | def test_setdefault_simple(self): |
| 1688 | box = Box({"a": 1}) |