

def test_filtering(self):
    qs = mock.Mock(spec=['filter'])
    value = mock.Mock(start=20, stop=30)
    f = NumericRangeFilter()
    f.filter(qs, value)
    qs.filter.assert_called_once_with(None__exact=(20, 30))

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py NumericRangeFilterTests.test_filtering/original