

def test__group2(self):
    reduce_func = Code('\n                function(cur, result) { result.count += 1 }\n                ')
    reduce_func.cmp.compare.group(key=['b'], condition={
        'foo': {
            '$in': [3, 4],
        },
        'name': 'theone',
    }, initial={
        'count': 0,
    }, reduce=reduce_func)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py _GroupTest.test__group2/VarMisuse@17/48 `self`->`reduce_func`