

def test_field_with_lookup_expr_and_exlusion(self):
    f = Filter(lookup_expr=None, exclude=True)
    field = f.field
    self.assertIsInstance(field, LookupTypeField)
    self.assertEqual(field.help_text, 'This is an exclusion filter')

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_field_with_lookup_expr_and_exlusion/original