

def test__group3(self):
    reducer = Code('\n            function(obj, result) {result.count+=1 }\n            ')
    conditions = {
        'foo': {
            '$in': [self._id1],
        },
    }
    self.cmp.compare.group(key=['foo'], condition=conditions, initial={
        'count': 0,
    }, reduce=self)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py _GroupTest.test__group3/VarMisuse@70/104 `reducer`->`self`