

def test_filtering_start(self):
    qs = mock.Mock(spec=['filter'])
    value = mock.Mock(start=datetime(2015, 4, 7, 8, 30), stop=None)
    f = DateTimeFromToRangeFilter()
    f.filter(qs, value)
    qs.filter.assert_called_once_with(None__gte=datetime(2015, 4, 7, 8, 30))

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py DateTimeFromToRangeFilterTests.test_filtering_start/original