diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-06 00:43:20 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-06 00:43:20 +0000 |
| commit | 56ae68c92f18ed0409154a080b5c9354bb0c6180 (patch) | |
| tree | 776c3eecc614c8fd8120d937755faa3cfc412840 | |
| parent | 3d650b4913c605a72060a0671c08f1a59ca91bfd (diff) | |
Removed the use of a deprecated unittest method.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/test/testcases.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 4d06a59fa7..57472f7631 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, |
