

def test_filtering_for_this_month(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, '3')
        qs.filter.assert_called_once_with(None__year=now_dt.year, None__month=now_dt.month)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py DateRangeFilterTests.test_filtering_for_this_month/original