(self)
| 1209 | assert bx.pop("c", True) is not True |
| 1210 | |
| 1211 | def test_pop_items(self): |
| 1212 | bx = Box(a=4, b=5) |
| 1213 | assert bx.popitem() == ("b", 5) |
| 1214 | assert bx.popitem() == ("a", 4) |
| 1215 | with pytest.raises(BoxKeyError): |
| 1216 | assert bx.popitem() |
| 1217 | |
| 1218 | def test_iter(self): |
| 1219 | bx = Box() |