

def test__aggregate5(self):
    pipeline = [{
        '$group': {
            '_id': {
                'id_a': '$a',
            },
            'total': {
                '$sum': '$count',
            },
            'avg': {
                '$avg': '$count',
            },
        },
    }, {
        '$sort': {
            '_id.a': 1,
            'total': 1,
            'avg': 1,
        },
    }]
    self.cmp.compare.aggregate(self)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientAggregateTest.test__aggregate5/VarMisuse@95/132 `pipeline`->`self`