(self)
| 828 | assert isinstance(db.users[0].users, UsersBoxList) |
| 829 | |
| 830 | def test_underscore_removal(self): |
| 831 | from box import Box |
| 832 | |
| 833 | b = Box(_out="preserved", test_="safe") |
| 834 | b.update({"out": "updated", "test": "unsafe"}) |
| 835 | assert b.out == "updated" |
| 836 | assert b._out == "preserved" |
| 837 | assert b.to_dict() == {"out": "updated", "test": "unsafe", "_out": "preserved", "test_": "safe"} |
| 838 | assert b.test == "unsafe" |
| 839 | assert b.test_ == "safe" |
| 840 | |
| 841 | def test_is_in(self): |
| 842 | bx = Box() |