

def test_filtering_ignores_lookup_expr(self):
    qs = mock.Mock()
    value = mock.Mock(start=date(2015, 4, 7), stop=date(2015, 9, 6))
    f = DateFromToRangeFilter(lookup_expr='gte')
    f.filter(qs, value)
    qs.filter.assert_called_once_with(None__range=(date(2015, 4, 7), date(2015, 9, 6)))

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py DateFromToRangeFilterTests.test_filtering_ignores_lookup_expr/original