Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ test_get
Method
test_get
tests/test_datastructures.py:440–443 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
438
assert d.items == 1
439
440
def
test_get(self):
441
d = self.dtype(a=1)
442
assert d.get(
"a"
) == 1
443
assert d.get(
"b"
,
"bla"
) ==
"bla"
444
445
def
test_items(self):
446
d = self.dtype(a=1)
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected