          self.assertEqual(sorted(model_to_dict(bw)),
                           ['id', 'name', 'score', 'writer_ptr'])
  
          form = BetterWriterForm({'name': 'Some Name', 'score': 12})
          self.assertEqual(form.is_valid(), True)
          bw2 = form.save()
          bw2.delete()
  
          form = WriterProfileForm()
          self.assertHTMLEqual(form.as_p(), '''<p><label for="id_writer">Writer:</label> <select name="writer" id="id_writer">
 
</s> remove         bw2.delete()
 </s> add         self.assertEqual(bw2.score, 12)

    def test_onetoonefield(self):
        class WriterProfileForm(forms.ModelForm):
            class Meta:
                # WriterProfile has a OneToOneField to Writer
                model = WriterProfile
                fields = '__all__'

        self.w_royko = Writer.objects.create(name='Mike Royko')
        self.w_woodward = Writer.objects.create(name='Bob Woodward') </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 <option value="%s">Carl Bernstein</option>
<option value="%s">Joe Better</option>
 </s> add  </s> remove <option value="%s">Carl Bernstein</option>
<option value="%s">Joe Better</option>
 </s> add  </s> remove         self.assertEqual(form.is_valid(), True)
 </s> add         self.assertTrue(form.is_valid())
        self.assertTrue(form.is_valid())
          self.assertEqual(sorted(model_to_dict(bw)),
                           ['id', 'name', 'score', 'writer_ptr'])
  
          form = BetterWriterForm({'name': 'Some Name', 'score': 12})
        self.assertTrue(form.is_valid())
          bw2 = form.save()
          bw2.delete()
  
          form = WriterProfileForm()
          self.assertHTMLEqual(form.as_p(), '''<p><label for="id_writer">Writer:</label> <select name="writer" id="id_writer">
keep keep keep keep replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py