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
This commit is contained in:
parent
668bc4f7be
commit
bb31cf37ff
|
@ -15,7 +15,7 @@ class DeletionTests(TestCase):
|
||||||
}
|
}
|
||||||
formset = PoetFormSet(data, queryset=Poet.objects.all())
|
formset = PoetFormSet(data, queryset=Poet.objects.all())
|
||||||
formset.save()
|
formset.save()
|
||||||
self.assertTrue(formset.is_valid())
|
self.failUnless(formset.is_valid())
|
||||||
self.assertEqual(Poet.objects.count(), 0)
|
self.assertEqual(Poet.objects.count(), 0)
|
||||||
|
|
||||||
def test_add_form_deletion_when_invalid(self):
|
def test_add_form_deletion_when_invalid(self):
|
||||||
|
|
|
@ -17,7 +17,7 @@ class DeletionTests(TestCase):
|
||||||
}
|
}
|
||||||
formset = PoemFormSet(data, instance=poet)
|
formset = PoemFormSet(data, instance=poet)
|
||||||
formset.save()
|
formset.save()
|
||||||
self.assertTrue(formset.is_valid())
|
self.failUnless(formset.is_valid())
|
||||||
self.assertEqual(Poem.objects.count(), 0)
|
self.assertEqual(Poem.objects.count(), 0)
|
||||||
|
|
||||||
def test_add_form_deletion_when_invalid(self):
|
def test_add_form_deletion_when_invalid(self):
|
||||||
|
|
Loading…
Reference in New Issue