| 1310 | assert not isinstance(bx.a, Box) |
| 1311 | |
| 1312 | def test_delete_attributes(self): |
| 1313 | b = Box(notThief=1, sortaThief=0, reallyAThief=True, camel_killer_box=True) |
| 1314 | b["$OhNo!"] = 3 |
| 1315 | c = Box(notThief=1, sortaThief=0, reallyAThief=True, camel_killer_box=True, conversion_box=False) |
| 1316 | del b.not_thief |
| 1317 | del b._oh_no_ |
| 1318 | del b.really_a_thief |
| 1319 | with pytest.raises(KeyError): |
| 1320 | del b.really_a_thief |
| 1321 | with pytest.raises(KeyError): |
| 1322 | del b._oh_no_ |
| 1323 | |
| 1324 | del c.not_thief |
| 1325 | del c.really_a_thief |
| 1326 | with pytest.raises(KeyError): |
| 1327 | del c.really_a_thief |
| 1328 | |
| 1329 | def test_add_boxes(self): |
| 1330 | b = Box(c=1, d={"sub": 1}, e=1) |