              (c4.pk, 'multicategory Fourth')])
  
          # OneToOneField ###############################################################
  
          self.assertEqual(list(ImprovedArticleForm.base_fields), ['article'])
  
          self.assertEqual(list(ImprovedArticleWithParentLinkForm.base_fields), [])
  
          bw = BetterWriter(name='Joe Better', score=10)
          bw.save()
 
</s> remove         # OneToOneField ###############################################################
 </s> add     # OneToOneField ###############################################################
    def test_modelform_onetoonefield(self):
        class ImprovedArticleForm(forms.ModelForm):
            class Meta:
                model = ImprovedArticle
                fields = '__all__' </s> remove         bw = BetterWriter(name='Joe Better', score=10)
        bw.save()
 </s> add     def test_modelform_subclassed_model(self):
        class BetterWriterForm(forms.ModelForm):
            class Meta:
                # BetterWriter model is a subclass of Writer with an additional `score` field
                model = BetterWriter
                fields = '__all__'

        bw = BetterWriter.objects.create(name='Joe Better', score=10) </s> remove             (c1.pk, 'multicategory Entertainment'),
            (c2.pk, "multicategory It's a test"),
            (c3.pk, 'multicategory Third'),
            (c4.pk, 'multicategory Fourth')])
 </s> add             (self.c1.pk, 'multicategory Entertainment'),
            (self.c2.pk, "multicategory It's a test"),
            (self.c3.pk, 'multicategory Third')]) </s> remove             (c1.pk, 'category Entertainment'),
            (c2.pk, "category It's a test"),
            (c3.pk, 'category Third'),
            (c4.pk, 'category Fourth')])

        # ModelMultipleChoiceField ####################################################
 </s> add             (self.c1.pk, 'category Entertainment'),
            (self.c2.pk, "category It's a test"),
            (self.c3.pk, 'category Third')])
        class ImprovedArticleWithParentLinkForm(forms.ModelForm):
            class Meta:
                model = ImprovedArticleWithParentLink
                fields = '__all__'
              (c4.pk, 'multicategory Fourth')])
  
          # OneToOneField ###############################################################
  
        class ImprovedArticleWithParentLinkForm(forms.ModelForm):
            class Meta:
                model = ImprovedArticleWithParentLink
                fields = '__all__'
  
          self.assertEqual(list(ImprovedArticleWithParentLinkForm.base_fields), [])
  
          bw = BetterWriter(name='Joe Better', score=10)
          bw.save()
keep keep keep keep replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py