

def test__find_one_and_delete(self):
    self.cmp.do.insert_many([{
        'a': i,
    } for i in range(10)])
    self.cmp.compare.find_one_and_delete({
        'a': 5,
    }, {
        '_id': False,
    })
    self.cmp.compare.find()

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