

def test_default_field_without_queryset(self):
    f = ModelChoiceFilter()
    with self.assertRaises(TypeError):
        self.field

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py ModelChoiceFilterTests.test_default_field_without_queryset/VarMisuse@26/36 `f`->`self`