Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.0.X] Replace test use of assertTrue with failUnless. No matter how…

… many times we try, Python 2.3 still doesn't recognize assertTrue.

[10390] from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cfe9b6f642342a9e091e6d937bed201689d781b2 1 parent 055f9a0
@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.