

def test_filtering_uses_name(self):
    qs = mock.Mock(spec=['filter'])
    f = Filter(name='somefield')
    f.filter(self, 'value')
    result = qs.filter.assert_called_once_with(somefield__exact='value')
    self.assertNotEqual(qs, result)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_filtering_uses_name/VarMisuse@36/46 `qs`->`self`