Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit bb31cf37ff2bcb8432753f27c40998467d42585c 1 parent 668bc4f
@kmtracey kmtracey authored
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):
Please sign in to comment.
Something went wrong with that request. Please try again.