Skip to content

Commit

Permalink
Removed the use of a deprecated unittest method.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
alex committed Nov 6, 2010
1 parent 3d650b4 commit 56ae68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/test/testcases.py
Expand Up @@ -408,7 +408,7 @@ def assertContains(self, response, text, count=None, status_code=200,
msg_prefix + "Found %d instances of '%s' in response"
" (expected %d)" % (real_count, text, count))
else:
self.failUnless(real_count != 0,
self.assertTrue(real_count != 0,
msg_prefix + "Couldn't find '%s' in response" % text)

def assertNotContains(self, response, text, status_code=200,
Expand Down

0 comments on commit 56ae68c

Please sign in to comment.