MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / test_get_default

Method test_get_default

tests/test_datastructures.py:129–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 assert get_ == getitem_
128
129 def test_get_default(self):
130 base_dict = self._get_basedict({})
131 sentinel = object()
132 assert base_dict.get("new") is None
133 assert base_dict.get("new", sentinel) is sentinel
134
135 def test___setitem___calls_mark_as_changed(self):
136 base_dict = self._get_basedict({})

Callers

nothing calls this directly

Calls 2

_get_basedictMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected