(self)
| 1144 | assert bx.pop("c", True) is not True |
| 1145 | |
| 1146 | def test_pop_items(self): |
| 1147 | bx = Box(a=4, b=5) |
| 1148 | assert bx.popitem() == ("b", 5) |
| 1149 | assert bx.popitem() == ("a", 4) |
| 1150 | with pytest.raises(BoxKeyError): |
| 1151 | assert bx.popitem() |
| 1152 | |
| 1153 | def test_iter(self): |
| 1154 | bx = Box() |