

def test_filtering_range(self):
    qs = mock.Mock(spec=['filter'])
    value = mock.Mock(start=time(10, 15), stop=time(12, 30))
    f = TimeRangeFilter()
    f.filter(qs, value)
    qs.filter.assert_called_once_with(None__range=(time(10, 15), time(12, 30)))

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py TimeRangeFilterTests.test_filtering_range/original