1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed a number of lint warnings, particularly around unused variables.

This commit is contained in:
Alex Gaynor
2013-08-04 09:17:10 -07:00
parent ebb3e50243
commit 3e0eb2d788
18 changed files with 39 additions and 52 deletions

View File

@@ -184,7 +184,7 @@ class PasswordResetTest(AuthViewsTestCase):
def _test_confirm_start(self):
# Start by creating the email
response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
self.assertEqual(len(mail.outbox), 1)
return self._read_signup_email(mail.outbox[0])
@@ -328,7 +328,7 @@ class ChangePasswordTest(AuthViewsTestCase):
})
def logout(self):
response = self.client.get('/logout/')
self.client.get('/logout/')
def test_password_change_fails_with_invalid_old_password(self):
self.login()
@@ -350,7 +350,7 @@ class ChangePasswordTest(AuthViewsTestCase):
def test_password_change_succeeds(self):
self.login()
response = self.client.post('/password_change/', {
self.client.post('/password_change/', {
'old_password': 'password',
'new_password1': 'password1',
'new_password2': 'password1',
@@ -465,7 +465,7 @@ class LoginTest(AuthViewsTestCase):
def test_login_form_contains_request(self):
# 15198
response = self.client.post('/custom_requestauth_login/', {
self.client.post('/custom_requestauth_login/', {
'username': 'testclient',
'password': 'password',
}, follow=True)