Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit ef92f4fdd91ec980618b35f907178655b5182ae3 1 parent 7d3846a
@kmtracey kmtracey authored
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.')
Please sign in to comment.
Something went wrong with that request. Please try again.