Skip to content

Commit

Permalink
Fixed some style issues in previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
aviraldg committed Apr 29, 2012
1 parent d12d55e commit 0525f6d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/regressiontests/admin_views/tests.py
Expand Up @@ -584,11 +584,8 @@ def test_hide_change_password(self):
user.save()

response = self.client.get('/test_admin/admin/')
if 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.')

user.password = password
user.save()
self.assertFalse(reverse('admin:password_change') in response.content,
msg='The "change password" link should not be displayed if a user does not have a usable password.')


class AdminViewFormUrlTest(TestCase):
Expand Down

0 comments on commit 0525f6d

Please sign in to comment.