Skip to content
Browse files

Replace test use of assertTrue with failUnless. No matter how many ti…

…mes 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
  • Loading branch information...
1 parent 668bc4f commit bb31cf37ff2bcb8432753f27c40998467d42585c @kmtracey kmtracey committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/modeltests/model_formsets/tests.py
  2. +1 −1 tests/regressiontests/inline_formsets/tests.py
View
2 tests/modeltests/model_formsets/tests.py
@@ -15,7 +15,7 @@ def test_deletion(self):
}
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):
View
2 tests/regressiontests/inline_formsets/tests.py
@@ -17,7 +17,7 @@ def test_deletion(self):
}
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):

0 comments on commit bb31cf3

Please sign in to comment.
Something went wrong with that request. Please try again.