diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-12-04 07:28:12 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-12-04 07:28:12 +0000 |
| commit | 5bc0ec4ec4b7c888a291bc81b2edd72812231d96 (patch) | |
| tree | bf3bec9ab44f1847ed2076167039e763011ea1cd /tests/regressiontests/inline_formsets | |
| parent | 6770c3626271569da41053c1cfd37f7128f1457f (diff) | |
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
Diffstat (limited to 'tests/regressiontests/inline_formsets')
| -rw-r--r-- | tests/regressiontests/inline_formsets/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/regressiontests/inline_formsets/tests.py b/tests/regressiontests/inline_formsets/tests.py index 24488661c7..5bd9d18ddd 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): |
