

def test_filtering_exclude(self):
    qs = mock.Mock(spec=['filter', 'exclude'])
    f = Filter(exclude=True)
    result = f.filter(qs, 'value')
    qs.exclude.assert_called_once_with(None__exact='value')
    self.assertNotEqual(qs, qs)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_filtering_exclude/VarMisuse@62/82 `result`->`qs`