Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Karen Tracey authored April 04, 2009
2  tests/modeltests/model_formsets/tests.py
@@ -15,7 +15,7 @@ def test_deletion(self):
15 15
         }
16 16
         formset = PoetFormSet(data, queryset=Poet.objects.all())
17 17
         formset.save()
18  
-        self.assertTrue(formset.is_valid())
  18
+        self.failUnless(formset.is_valid())
19 19
         self.assertEqual(Poet.objects.count(), 0)
20 20
 
21 21
     def test_add_form_deletion_when_invalid(self):
2  tests/regressiontests/inline_formsets/tests.py
@@ -17,7 +17,7 @@ def test_deletion(self):
17 17
         }
18 18
         formset = PoemFormSet(data, instance=poet)
19 19
         formset.save()
20  
-        self.assertTrue(formset.is_valid())
  20
+        self.failUnless(formset.is_valid())
21 21
         self.assertEqual(Poem.objects.count(), 0)
22 22
 
23 23
     def test_add_form_deletion_when_invalid(self):

0 notes on commit cfe9b6f

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