

def test__find_by_attributes(self):
    id1 = ObjectId()
    self.cmp.do.insert({
        '_id': id1,
        'name': 'new',
    })
    self.cmp.do.insert({
        'name': 'another new',
    })
    self.cmp.compare_ignore_order.find()
    self.cmp.compare.find({
        '_id': id1,
    })

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