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

Method test_random_bytes

test/test_objectid.py:145–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 self.assertEqual(oid_1_9, oid_1_10)
144
145 def test_random_bytes(self):
146 self.assertTrue(oid_generated_on_process(ObjectId()))
147
148 def test_is_valid(self):
149 self.assertFalse(ObjectId.is_valid(None))

Callers

nothing calls this directly

Calls 2

oid_generated_on_processFunction · 0.90
ObjectIdClass · 0.90

Tested by

no test coverage detected