mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
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:
parent
3c64870a2c
commit
9236d16b80
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class TestCase(unittest.TestCase):
|
||||||
self.assertEqual(real_count, count,
|
self.assertEqual(real_count, count,
|
||||||
"Found %d instances of '%s' in response (expected %d)" % (real_count, text, count))
|
"Found %d instances of '%s' in response (expected %d)" % (real_count, text, count))
|
||||||
else:
|
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):
|
def assertFormError(self, response, form, field, errors):
|
||||||
"Assert that a form used to render the response has a specific field error"
|
"Assert that a form used to render the response has a specific field error"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue