

def test__find_one_and_replace(self):
    self.cmp.do.insert_many([{
        'a': i,
    } for i in range(10)])
    self.cmp.compare.find_one_and_replace({
        'a': 5,
    }, {
        'a': 11,
    }, projection={
        '_id': False,
    })
    self.cmp.compare.find()

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientCollectionTest.test__find_one_and_replace/original