Fixed some style issues in previous commit.

This commit is contained in:
Aviral Dasgupta 2012-04-29 21:30:41 +05:30
parent d12d55ec26
commit 0525f6d8bd
1 changed files with 2 additions and 5 deletions

View File

@ -584,11 +584,8 @@ class AdminViewBasicTest(TestCase):
user.save() user.save()
response = self.client.get('/test_admin/admin/') response = self.client.get('/test_admin/admin/')
if reverse('admin:password_change') in response.content: self.assertFalse(reverse('admin:password_change') in response.content,
self.fail('The "change password" link should not be displayed if a user does not have a usable password.') msg='The "change password" link should not be displayed if a user does not have a usable password.')
user.password = password
user.save()
class AdminViewFormUrlTest(TestCase): class AdminViewFormUrlTest(TestCase):