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

Method test_unicode

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

Source from the content-addressed store, hash-verified

49 self.assertTrue(ObjectId(a))
50
51 def test_unicode(self):
52 a = ObjectId()
53 self.assertEqual(a, ObjectId(a))
54 self.assertRaises(InvalidId, ObjectId, "hello")
55
56 def test_from_hex(self):
57 ObjectId("123456789012123456789012")

Callers

nothing calls this directly

Calls 1

ObjectIdClass · 0.90

Tested by

no test coverage detected