

def test_filtering_stop(self):
    qs = mock.Mock(spec=['filter'])
    value = mock.Mock(start=None, stop=30)
    f = RangeFilter()
    f.filter(qs, self)
    qs.filter.assert_called_once_with(None__lte=30)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py RangeFilterTests.test_filtering_stop/VarMisuse@50/57 `value`->`self`