              f.clean([c6.id])
  
          f = forms.ModelMultipleChoiceField(Category.objects.all(), required=False)
          self.assertIsInstance(f.clean([]), EmptyQuerySet)
          self.assertIsInstance(f.clean(()), EmptyQuerySet)
          with self.assertRaises(ValidationError):
              f.clean(['0'])
 
</s> remove             f.clean([str(c3.id), '0'])
 </s> add             f.clean([str(self.c3.id), '0']) </s> remove         f = forms.ModelChoiceField(Category.objects.filter(pk=c1.id), required=False)
        self.assertEqual(f.clean(''), None)
        f.clean('')
        self.assertEqual(f.clean(str(c1.id)).name, "Entertainment")
 </s> add     def test_modelchoicefield_choices(self):
        self.create_categories()
        f = forms.ModelChoiceField(Category.objects.filter(pk=self.c1.id), required=False)
        self.assertIsNone(f.clean(''))
        self.assertEqual(f.clean(str(self.c1.id)).name, "Entertainment") </s> remove             f.clean([str(c1.id), '0'])
 </s> add             f.clean([str(self.c1.id), '0']) </s> remove             f.clean(c5.id)
 </s> add             f.clean(c4.id) </s> remove         Category.objects.get(url='5th').delete()
 </s> add         Category.objects.get(url='4th').delete()
    def test_modelmultiplechoicefield_required_false(self):
        self.create_categories()
              f.clean([c6.id])
  
    def test_modelmultiplechoicefield_required_false(self):
        self.create_categories()
          f = forms.ModelMultipleChoiceField(Category.objects.all(), required=False)
          self.assertIsInstance(f.clean([]), EmptyQuerySet)
          self.assertIsInstance(f.clean(()), EmptyQuerySet)
          with self.assertRaises(ValidationError):
              f.clean(['0'])
keep add keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py