Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed the use of a deprecated unittest method.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 56ae68c92f18ed0409154a080b5c9354bb0c6180 1 parent 3d650b4
Alex Gaynor authored November 06, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/test/testcases.py
2  django/test/testcases.py
@@ -408,7 +408,7 @@ def assertContains(self, response, text, count=None, status_code=200,
408 408
                 msg_prefix + "Found %d instances of '%s' in response"
409 409
                 " (expected %d)" % (real_count, text, count))
410 410
         else:
411  
-            self.failUnless(real_count != 0,
  411
+            self.assertTrue(real_count != 0,
412 412
                 msg_prefix + "Couldn't find '%s' in response" % text)
413 413
 
414 414
     def assertNotContains(self, response, text, status_code=200,

0 notes on commit 56ae68c

Please sign in to comment.
Something went wrong with that request. Please try again.