              class Meta:
                  model = Price
                  fields = ('price',)
          form = PriceFormWithoutQuantity({'price': '6.00'})
          self.assertEqual(form.is_valid(), True)
  
          # The form should still have an instance of a model that is not complete and
          # not saved into a DB yet.
  
          self.assertEqual(form.instance.price, Decimal('6.00'))
 
</s> remove         self.assertEqual(form.instance.quantity is None, True)
        self.assertEqual(form.instance.pk is None, True)
 </s> add         self.assertIsNone(form.instance.quantity)
        self.assertIsNone(form.instance.pk) </s> remove         self.assertEqual(form.is_valid(), True)
 </s> add         self.assertTrue(form.is_valid()) </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 class ColourfulItemForm(forms.ModelForm):
    class Meta:
        model = ColourfulItem
        fields = '__all__'

# model forms for testing work on #9321:


class StatusNoteForm(forms.ModelForm):
    class Meta:
        model = ArticleStatusNote
        fields = '__all__'


class StatusNoteCBM2mForm(forms.ModelForm):
    class Meta:
        model = ArticleStatusNote
        fields = '__all__'
        widgets = {'status': forms.CheckboxSelectMultiple}


 </s> add 
        self.assertTrue(form.is_valid())
              class Meta:
                  model = Price
                  fields = ('price',)
          form = PriceFormWithoutQuantity({'price': '6.00'})
        self.assertTrue(form.is_valid())
  
          # The form should still have an instance of a model that is not complete and
          # not saved into a DB yet.
  
          self.assertEqual(form.instance.price, Decimal('6.00'))
keep keep keep keep replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py