From bb31cf37ff2bcb8432753f27c40998467d42585c Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Sat, 4 Apr 2009 17:51:35 +0000 Subject: [PATCH] Replace test use of assertTrue with failUnless. No matter how many times we try, Python 2.3 still doesn't recognize assertTrue. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10390 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/model_formsets/tests.py | 2 +- tests/regressiontests/inline_formsets/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/modeltests/model_formsets/tests.py b/tests/modeltests/model_formsets/tests.py index a45b44375fe..d343fc72966 100644 --- a/tests/modeltests/model_formsets/tests.py +++ b/tests/modeltests/model_formsets/tests.py @@ -15,7 +15,7 @@ class DeletionTests(TestCase): } formset = PoetFormSet(data, queryset=Poet.objects.all()) formset.save() - self.assertTrue(formset.is_valid()) + self.failUnless(formset.is_valid()) self.assertEqual(Poet.objects.count(), 0) def test_add_form_deletion_when_invalid(self): diff --git a/tests/regressiontests/inline_formsets/tests.py b/tests/regressiontests/inline_formsets/tests.py index f1527ac3c38..1d9a730479f 100644 --- a/tests/regressiontests/inline_formsets/tests.py +++ b/tests/regressiontests/inline_formsets/tests.py @@ -17,7 +17,7 @@ class DeletionTests(TestCase): } formset = PoemFormSet(data, instance=poet) formset.save() - self.assertTrue(formset.is_valid()) + self.failUnless(formset.is_valid()) self.assertEqual(Poem.objects.count(), 0) def test_add_form_deletion_when_invalid(self):