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

Method test_from_hex

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

Source from the content-addressed store, hash-verified

54 self.assertRaises(InvalidId, ObjectId, "hello")
55
56 def test_from_hex(self):
57 ObjectId("123456789012123456789012")
58 self.assertRaises(InvalidId, ObjectId, "123456789012123456789G12")
59
60 def test_repr_str(self):
61 self.assertEqual(

Callers

nothing calls this directly

Calls 1

ObjectIdClass · 0.90

Tested by

no test coverage detected