

def test_filtering_ignores_lookup_expr(self):
    qs = mock.Mock()
    value = mock.Mock(start=datetime(2015, 4, 7, 8, 30), stop=datetime(2015, 9, 6, 11, 45))
    f = DateTimeFromToRangeFilter(lookup_expr='gte')
    f.filter(qs, value)
    value.filter.assert_called_once_with(None__range=(datetime(2015, 4, 7, 8, 30), datetime(2015, 9, 6, 11, 45)))

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py DateTimeFromToRangeFilterTests.test_filtering_ignores_lookup_expr/VarMisuse@73/89 `qs`->`value`