

def test__aggregate3(self):
    pipeline = [{
        '$group': {
            '_id': 'a',
            'count': {
                '$sum': '$count',
            },
        },
    }, {
        '$match': {
            'a': {
                '$lt': 3,
            },
        },
    }, {
        '$sort': {
            '_id': (- 1),
            'count': 1,
        },
    }, {
        '$skip': 1,
    }, {
        '$limit': 2,
    }]
    self.cmp.compare.aggregate(self)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientAggregateTest.test__aggregate3/VarMisuse@115/148 `pipeline`->`self`