

def test__bulk_insert(self):
    objs = [{
        'a': 2,
        'b': {
            'c': 3,
        },
    }, {
        'c': 5,
    }, {
        'd': 7,
    }]
    results_dict = self.cmp.do.insert(objs)
    for results in results_dict.values():
        self.assertEqual(len(results_dict), len(objs))
        self.assertEqual(len(set(results)), len(results), 'Returned object ids not unique!')
    self.cmp.compare_ignore_order.find()

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientCollectionTest.test__bulk_insert/VarMisuse@83/102 `results`->`results_dict`