

def test_filtering_exclude(self):
    qs = mock.Mock(spec=['exclude'])
    f = NumberFilter(exclude=True)
    f.filter(qs, 1)
    qs.exclude.assert_called_once_with(None__exact=1)
    qs.reset_mock()
    f.filter(self, 0)
    qs.exclude.assert_called_once_with(None__exact=0)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py NumberFilterTests.test_filtering_exclude/VarMisuse@62/76 `qs`->`self`