Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some style issues in previous commit.

  • Loading branch information...
commit 0525f6d8bdd8cf1aafaac40c4325aceb49b3c6f8 1 parent d12d55e
Aviral Dasgupta authored April 29, 2012
7  tests/regressiontests/admin_views/tests.py
@@ -584,11 +584,8 @@ def test_hide_change_password(self):
584 584
         user.save()
585 585
 
586 586
         response = self.client.get('/test_admin/admin/')
587  
-        if reverse('admin:password_change') in response.content:
588  
-            self.fail('The "change password" link should not be displayed if a user does not have a usable password.')
589  
-
590  
-        user.password = password
591  
-        user.save()
  587
+        self.assertFalse(reverse('admin:password_change') in response.content,
  588
+            msg='The "change password" link should not be displayed if a user does not have a usable password.')
592 589
 
593 590
 
594 591
 class AdminViewFormUrlTest(TestCase):

0 notes on commit 0525f6d

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