

def test_field_with_exclusion(self):
    f = Filter(exclude=True)
    field = f.field
    self.assertIsInstance(field, forms.Field)
    self.assertEqual(field.help_text, 'This is an exclusion filter')

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