Author: Alex
Date: 2010-11-05 19:43:20 -0500 (Fri, 05 Nov 2010)
New Revision: 14465

Modified:
   django/trunk/django/test/testcases.py
Log:
Removed the use of a deprecated unittest method.

Modified: django/trunk/django/test/testcases.py
===================================================================
--- django/trunk/django/test/testcases.py       2010-11-04 21:10:22 UTC (rev 
14464)
+++ django/trunk/django/test/testcases.py       2010-11-06 00:43:20 UTC (rev 
14465)
@@ -408,7 +408,7 @@
                 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,

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to