          self.assertEqual(cat.name, "Third test")
          self.assertEqual(cat.id == c3.id, True)
          form = ShortCategory({'name': 'Third', 'slug': 'third', 'url': '3rd'}, instance=cat)
          self.assertEqual(form.save().name, 'Third')
          self.assertEqual(Category.objects.get(id=c3.id).name, 'Third')
  
          # Here, we demonstrate that choices for a ForeignKey ChoiceField are determined
          # at runtime, based on the data in the database when the form is displayed, not
          # the data in the database when the form is instantiated.
          f = ArticleForm(auto_id=False)
 
</s> remove         cat = Category.objects.get(name='Third test')
        self.assertEqual(cat.name, "Third test")
        self.assertEqual(cat.id == c3.id, True)
 </s> add         class ShortCategory(forms.ModelForm):
            name = forms.CharField(max_length=5)
            slug = forms.CharField(max_length=5)
            url = forms.CharField(max_length=3)

            class Meta:
                model = Category
                fields = '__all__'

        cat = Category.objects.create(name='Third test') </s> remove         self.assertEqual(f.clean(c3.id).name, 'Third')
        self.assertEqual(f.clean(c2.id).name, "It's a test")
 </s> add         self.assertEqual(f.clean(self.c2.id).name, "It's a test")
        self.assertEqual(f.clean(self.c3.id).name, 'Third') </s> remove         new_art = Article.objects.get(id=art_id_4)
 </s> add         new_art = Article.objects.get(id=art_id_3)
        self.assertEqual(Category.objects.get(id=cat.id).name, 'Third')
          self.assertEqual(cat.name, "Third test")
          self.assertEqual(cat.id == c3.id, True)
          form = ShortCategory({'name': 'Third', 'slug': 'third', 'url': '3rd'}, instance=cat)
          self.assertEqual(form.save().name, 'Third')
        self.assertEqual(Category.objects.get(id=cat.id).name, 'Third')
  
          # Here, we demonstrate that choices for a ForeignKey ChoiceField are determined
          # at runtime, based on the data in the database when the form is displayed, not
          # the data in the database when the form is instantiated.
          f = ArticleForm(auto_id=False)
keep keep keep keep replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py