

def test_field_with_lookup_expr(self):
    qs = mock.Mock()
    value = mock.Mock(start=20, stop=30)
    f = NumericRangeFilter(lookup_expr='overlap')
    f.filter(qs, value)
    qs.filter.assert_called_once_with(None__overlap=(20, 30))

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