

def test_field_with_list_lookup_expr(self):
    f = Filter(lookup_expr=('istartswith', 'iendswith'))
    field = f.field
    self.assertIsInstance(field, LookupTypeField)
    choice_field = field.fields[1]
    self.assertEqual(len(self.choices), 2)

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_field_with_list_lookup_expr/VarMisuse@53/75 `choice_field`->`self`