

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

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py ModelMultipleChoiceFilterTests.test_default_field_without_queryset/original