

def test__update(self):
    doc = {
        'a': 1,
    }
    self.cmp.do.insert(doc)
    new_document = {
        'new_attr': 2,
    }
    self.cmp.do.update({
        'a': 1,
    }, new_document)
    self.cmp.compare_ignore_order.find()

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