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

Class MyDoc

tests/fields/test_object_id_field.py:10–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8class TestObjectIdField(MongoDBTestCase):
9 def test_storage(self):
10 class MyDoc(Document):
11 oid = ObjectIdField()
12
13 doc = MyDoc(oid=ObjectId())
14 doc.save()

Callers 3

test_storageMethod · 0.70
test_validation_worksMethod · 0.70

Calls 1

ObjectIdFieldClass · 0.90

Tested by 3

test_storageMethod · 0.56
test_validation_worksMethod · 0.56