From 56ae68c92f18ed0409154a080b5c9354bb0c6180 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 6 Nov 2010 00:43:20 +0000 Subject: [PATCH] Removed the use of a deprecated unittest method. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14465 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/testcases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/test/testcases.py b/django/test/testcases.py index 4d06a59fa71..57472f76317 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -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,