Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some style issues in previous commit.

  • Loading branch information...
commit 0525f6d8bdd8cf1aafaac40c4325aceb49b3c6f8 1 parent d12d55e
@aviraldg aviraldg authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 tests/regressiontests/admin_views/tests.py
View
7 tests/regressiontests/admin_views/tests.py
@@ -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):

0 comments on commit 0525f6d

Please sign in to comment.
Something went wrong with that request. Please try again.