

def test_filtering_for_today(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, '1')
        qs.filter.assert_called_once_with(None__year=self.year, None__month=now_dt.month, None__day=now_dt.day)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py DateRangeFilterTests.test_filtering_for_today/VarMisuse@64/97 `now_dt`->`self`