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

Method _assert_db_equal

tests/queryset/test_modify.py:24–25  ·  view source on GitHub ↗
(self, docs)

Source from the content-addressed store, hash-verified

22 Doc.drop_collection()
23
24 def _assert_db_equal(self, docs):
25 assert list(Doc._collection.find().sort("id")) == docs
26
27 def test_modify(self):
28 Doc(id=0, value=0).save()

Calls

no outgoing calls

Tested by

no test coverage detected