

def test_filter_using_action(self):
    qs = mock.NonCallableMock(spec=[])
    action = mock.Mock(spec=['filter'])
    f = Filter(action=action)
    result = f.filter(qs, 'value')
    action.assert_called_once_with(qs, 'value')
    self.assertNotEqual(result, result)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_filter_using_action/VarMisuse@68/86 `qs`->`result`