MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_objectid

Method test_objectid

test/test_json_util.py:108–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 self.assertEqual(opts3.document_class, SON)
107
108 def test_objectid(self):
109 self.round_trip({"id": ObjectId()})
110
111 def test_dbref(self):
112 self.round_trip({"ref": DBRef("foo", 5)})

Callers

nothing calls this directly

Calls 2

round_tripMethod · 0.95
ObjectIdClass · 0.90

Tested by

no test coverage detected