Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Made a Python 2.3 compatibility test fix.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ef92f4fdd91ec980618b35f907178655b5182ae3 1 parent 7d3846a
Karen Tracey authored March 14, 2010
4  tests/regressiontests/views/tests/defaults.py
@@ -62,8 +62,8 @@ def test_server_error(self):
62 62
 
63 63
     def test_get_absolute_url_attributes(self):
64 64
         "A model can set attributes on the get_absolute_url method"
65  
-        self.assertTrue(getattr(UrlArticle.get_absolute_url, 'purge', False),
  65
+        self.failUnless(getattr(UrlArticle.get_absolute_url, 'purge', False),
66 66
                         'The attributes of the original get_absolute_url must be added.')
67 67
         article = UrlArticle.objects.get(pk=1)
68  
-        self.assertTrue(getattr(article.get_absolute_url, 'purge', False),
  68
+        self.failUnless(getattr(article.get_absolute_url, 'purge', False),
69 69
                         'The attributes of the original get_absolute_url must be added.')

0 notes on commit ef92f4f

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