Fixed a Python 2.3 incompatibility.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-08-12 02:14:52 +00:00
parent 3c64870a2c
commit 9236d16b80
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class TestCase(unittest.TestCase):
self.assertEqual(real_count, count,
"Found %d instances of '%s' in response (expected %d)" % (real_count, text, count))
else:
self.assertTrue(real_count != 0, "Couldn't find '%s' in response" % text)
self.failUnless(real_count != 0, "Couldn't find '%s' in response" % text)
def assertFormError(self, response, form, field, errors):
"Assert that a form used to render the response has a specific field error"