

def test_default_field_with_queryset(self):
    qs = mock.NonCallableMock(spec=[])
    f = ModelMultipleChoiceFilter(queryset=qs)
    field = f.field
    self.assertIsInstance(field, forms.ModelMultipleChoiceField)
    self.assertEqual(field.queryset, qs)

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