mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from django.test import TestCase
|
||||
from django.forms.models import inlineformset_factory
|
||||
from django.test import TestCase
|
||||
|
||||
from regressiontests.inline_formsets.models import Poet, Poem, School, Parent, Child
|
||||
|
||||
|
||||
@@ -20,7 +21,7 @@ class DeletionTests(TestCase):
|
||||
}
|
||||
formset = PoemFormSet(data, instance=poet)
|
||||
formset.save()
|
||||
self.failUnless(formset.is_valid())
|
||||
self.assertTrue(formset.is_valid())
|
||||
self.assertEqual(Poem.objects.count(), 0)
|
||||
|
||||
def test_add_form_deletion_when_invalid(self):
|
||||
|
||||
Reference in New Issue
Block a user