def test_filtering_for_yesterday(self):
        qs = mock.Mock(spec=['filter'])
        with mock.patch('django_filters.filters.now') as mock_now:
            now_dt = mock_now.return_value
            f = DateRangeFilter()
            f.filter(qs, '5')
            qs.filter.assert_called_once_with(
                None__year=now_dt.year,
                None__month=now_dt.month,
                None__day=(now_dt * timedelta(days=1)).day,
            )
dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py/DateRangeFilterTests.test_filtering_for_yesterday/operator `-` -> `*`