

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

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py NumberFilterTests.test_filtering/VarMisuse@29/35 `f`->`self`