

def test_field_extra_params(self):
    with mock.patch.object(Filter, 'field_class', spec=['__call__']) as mocked:
        f = Filter(someattr='someattr')
        mocked.field
        mocked.assert_called_once_with(required=mock.ANY, label=mock.ANY, widget=mock.ANY, help_text=mock.ANY, someattr='someattr')

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_field_extra_params/VarMisuse@41/57 `f`->`mocked`