          form = WriterProfileForm()
          self.assertHTMLEqual(form.as_p(), '''<p><label for="id_writer">Writer:</label> <select name="writer" id="id_writer">
  <option value="" selected="selected">---------</option>
  <option value="%s">Bob Woodward</option>
  <option value="%s">Carl Bernstein</option>
  <option value="%s">Joe Better</option>
  <option value="%s">Mike Royko</option>
  </select></p>
  <p><label for="id_age">Age:</label> <input type="number" name="age" id="id_age" min="0" /></p>''' % (w_woodward.pk, w_bernstein.pk, bw.pk, w_royko.pk))
  
          data = {
 
</s> remove <option value="%s">Carl Bernstein</option>
<option value="%s">Joe Better</option>
 </s> add  </s> remove <p><label for="id_age">Age:</label> <input type="number" name="age" id="id_age" min="0" /></p>''' % (w_woodward.pk, w_bernstein.pk, bw.pk, w_royko.pk))
 </s> add <p><label for="id_age">Age:</label> <input type="number" name="age" id="id_age" min="0" /></p>''' % (self.w_woodward.pk, self.w_royko.pk)) </s> remove <p><label for="id_age">Age:</label> <input type="number" name="age" value="65" id="id_age" min="0" /></p>''' % (w_woodward.pk, w_bernstein.pk, bw.pk, w_royko.pk))
 </s> add <p><label for="id_age">Age:</label> <input type="number" name="age" value="65" id="id_age" min="0" /></p>''' % (self.w_woodward.pk, self.w_royko.pk)) </s> remove             'writer': six.text_type(w_woodward.pk),
 </s> add             'writer': six.text_type(self.w_woodward.pk), </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')
          form = WriterProfileForm()
          self.assertHTMLEqual(form.as_p(), '''<p><label for="id_writer">Writer:</label> <select name="writer" id="id_writer">
  <option value="" selected="selected">---------</option>
  <option value="%s">Bob Woodward</option>


  <option value="%s">Mike Royko</option>
  </select></p>
  <p><label for="id_age">Age:</label> <input type="number" name="age" id="id_age" min="0" /></p>''' % (w_woodward.pk, w_bernstein.pk, bw.pk, w_royko.pk))
  
          data = {
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py