MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_underscore_removal

Method test_underscore_removal

test/test_box.py:1092–1101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
to_dictMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected