summaryrefslogtreecommitdiff
path: root/tests/regressiontests/inline_formsets/tests.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-12-04 07:49:31 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-12-04 07:49:31 +0000
commitcc48f66f733c9b2fdbc817d473c82300e807f779 (patch)
tree43942c3e58245e0e96fbbc9afe4509c1f1e95628 /tests/regressiontests/inline_formsets/tests.py
parent5a792ec4ccacf7c68a3273763fab433bf57760fe (diff)
[1.2.X] Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. Backport of [14803].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/inline_formsets/tests.py')
-rw-r--r--tests/regressiontests/inline_formsets/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/regressiontests/inline_formsets/tests.py b/tests/regressiontests/inline_formsets/tests.py
index 73bbeebbf7..dd698ab1c3 100644
--- a/tests/regressiontests/inline_formsets/tests.py
+++ b/tests/regressiontests/inline_formsets/tests.py
@@ -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):