def test__set(self):
        self.cmp.do.update({'_id': 42},
                           {'$set': {'some': 'thing'}},
                           upsert=True)
        self.cmp.compare.find({'_id': 42})
        self.cmp.do.insert({'name': 'bob'})
        self.cmp.do.update({'name': 'bob'}, {'$set': {'hat': 'green'}})
        self.cmp.compare.find({'name': 'bob'})
        self.cmp.do.update({'name': 'bob'}, {'$set': {'hat': 'red'}})
        self.cmp.compare.find({'name': 'bob'})
Tests calling update with $set members.
dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py/MongoClientCollectionTest.test__set