  
      def save(self):
          if not self.id:
              self.created = datetime.date.today()
          return super(Article, self).save()
  
      def __str__(self):
          return self.headline
  
  
 
</s> remove     def save(self):
 </s> add     def save(self, *args, **kwargs): </s> remove         self.assertEqual(Category.objects.count(), 1)

        f = BaseCategoryForm({'name': "It's a test",
                              'slug': 'its-test',
                              'url': 'test'})
        self.assertTrue(f.is_valid())
        self.assertEqual(f.cleaned_data['name'], "It's a test")
        self.assertEqual(f.cleaned_data['slug'], 'its-test')
        self.assertEqual(f.cleaned_data['url'], 'test')
        c2 = f.save()
        # Testing wether the same object is returned from the
        # ORM... not the fastest way...
        self.assertEqual(c2, Category.objects.get(pk=c2.pk))
        self.assertEqual(c2.name, "It's a test")
        self.assertEqual(Category.objects.count(), 2)
 </s> add  </s> remove         self.assertEqual(form.is_valid(), True)
 </s> add         self.assertTrue(form.is_valid())
        return super(Article, self).save(*args, **kwargs)
  
      def save(self):
          if not self.id:
              self.created = datetime.date.today()
        return super(Article, self).save(*args, **kwargs)
  
      def __str__(self):
          return self.headline
  
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/models.py