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

Method test_get_db

tests/document/test_class_methods.py:35–38  ·  view source on GitHub ↗

Ensure that get_db returns the expected db.

(self)

Source from the content-addressed store, hash-verified

33 )
34
35 def test_get_db(self):
36 """Ensure that get_db returns the expected db."""
37 db = self.Person._get_db()
38 assert self.db == db
39
40 def test_get_collection_name(self):
41 """Ensure that get_collection_name returns the expected collection

Callers

nothing calls this directly

Calls 1

_get_dbMethod · 0.80

Tested by

no test coverage detected