Permalink
Browse files

[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...
1 parent 7d3846a commit ef92f4fdd91ec980618b35f907178655b5182ae3 @kmtracey kmtracey committed Mar 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/views/tests/defaults.py
View
4 tests/regressiontests/views/tests/defaults.py
@@ -62,8 +62,8 @@ def test_server_error(self):
def test_get_absolute_url_attributes(self):
"A model can set attributes on the get_absolute_url method"
- self.assertTrue(getattr(UrlArticle.get_absolute_url, 'purge', False),
+ self.failUnless(getattr(UrlArticle.get_absolute_url, 'purge', False),
'The attributes of the original get_absolute_url must be added.')
article = UrlArticle.objects.get(pk=1)
- self.assertTrue(getattr(article.get_absolute_url, 'purge', False),
+ self.failUnless(getattr(article.get_absolute_url, 'purge', False),
'The attributes of the original get_absolute_url must be added.')

0 comments on commit ef92f4f

Please sign in to comment.