1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00

Removed the use of a deprecated unittest method.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor 2010-11-06 00:43:20 +00:00
parent 3d650b4913
commit 56ae68c92f

View File

@ -408,7 +408,7 @@ class TransactionTestCase(ut2.TestCase):
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,