(self)
| 1090 | assert isinstance(db.users[0].users, UsersBoxList) |
| 1091 | |
| 1092 | def test_underscore_removal(self): |
| 1093 | from box import Box |
| 1094 | |
| 1095 | b = Box(_out="preserved", test_="safe") |
| 1096 | b.update({"out": "updated", "test": "unsafe"}) |
| 1097 | assert b.out == "updated" |
| 1098 | assert b._out == "preserved" |
| 1099 | assert b.to_dict() == {"out": "updated", "test": "unsafe", "_out": "preserved", "test_": "safe"} |
| 1100 | assert b.test == "unsafe" |
| 1101 | assert b.test_ == "safe" |
| 1102 | |
| 1103 | def test_is_in(self): |
| 1104 | bx = Box() |