Permalink
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/test/testcases.py
View
2 django/test/testcases.py
@@ -88,7 +88,7 @@ def assertContains(self, response, text, count=None, status_code=200):
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"

0 comments on commit 9236d16

Please sign in to comment.