

def test__equal_with_same_id(self):
    obj1 = ObjectId()
    obj2 = ObjectId(str(obj1))
    self.assertEqual(obj1, obj2)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py ObjectIdTest.test__equal_with_same_id/original