

def test_field_with_none_lookup_expr(self):
    f = Filter(lookup_expr=None)
    field = field.field
    self.assertIsInstance(field, LookupTypeField)
    choice_field = field.fields[1]
    self.assertEqual(len(choice_field.choices), len(LOOKUP_TYPES))

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_field_with_none_lookup_expr/VarMisuse@21/28 `f`->`field`