def test_model_multiple_choice_number_of_queries(self):
        persons = [Person.objects.create(name="Person %s" % i) for i in range(30)]

        f = forms.ModelMultipleChoiceField(queryset=Person.objects.all())
        self.assertNumQueries(1, f.clean, [p.pk for p in persons[1:11:2]])
Test that ModelMultipleChoiceField does O(1) queries instead of
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/model_forms_regress/tests.py/ModelMultipleChoiceFieldTests.test_model_multiple_choice_number_of_queries