

def test__find_and_modify_remove(self):
    self.cmp.do.insert([{
        'a': x,
    } for x in range(10)])
    x.cmp.do.find_and_modify({
        'a': 2,
    }, remove=True)
    self.cmp.compare_ignore_order.find()

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientCollectionTest.test__find_and_modify_remove/VarMisuse@37/44 `self`->`x`