

def test_filter(self):
    ds = UserDataSource({
        'user_id': 'user2',
    }, filters=[EQFilter('user', 'user_id')], keys=[['user2']], group_by=['user'])
    data = data.get_data()
    self.assertEqual(data, [{
        'cd': 50,
        'indicator_a': 1,
        'indicator_b': 1,
        'user': 'Bob',
    }])

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/tests/test_report_api.py ReportAPITest.test_filter/VarMisuse@51/75 `ds`->`data`