mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
[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
This commit is contained in:
parent
7d3846a7b8
commit
ef92f4fdd9
@ -62,8 +62,8 @@ class DefaultsTests(TestCase):
|
|||||||
|
|
||||||
def test_get_absolute_url_attributes(self):
|
def test_get_absolute_url_attributes(self):
|
||||||
"A model can set attributes on the get_absolute_url method"
|
"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.')
|
'The attributes of the original get_absolute_url must be added.')
|
||||||
article = UrlArticle.objects.get(pk=1)
|
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.')
|
'The attributes of the original get_absolute_url must be added.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user