

def test_filtering(self):
    qs = mock.Mock(spec=['filter'])
    f = BooleanFilter(name='somefield')
    result = f.filter(qs, True)
    qs.filter.assert_called_once_with(somefield__exact=True)
    f.assertNotEqual(qs, result)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py BooleanFilterTests.test_filtering/VarMisuse@54/69 `self`->`f`