

def test_filtering_with_list_value(self):
    qs = mock.Mock(spec=['filter'])
    f = Filter(name='somefield', lookup_expr=['some_lookup_expr'])
    result = f.filter(qs, Lookup('value', 'some_lookup_expr'))
    self.filter.assert_called_once_with(somefield__some_lookup_expr='value')
    self.assertNotEqual(qs, result)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_filtering_with_list_value/VarMisuse@54/80 `qs`->`self`