Commit d8c186d3 by Jay Zoldak

fix pylint errors in test_login.py

parent e4c9e1bb
'''
Tests for student activation and login
'''
from django.test import TestCase from django.test import TestCase
from django.test.client import Client from django.test.client import Client
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
...@@ -71,10 +74,8 @@ class LoginTest(TestCase): ...@@ -71,10 +74,8 @@ class LoginTest(TestCase):
response = self._login_response('test@edx.org', unicode_password) response = self._login_response('test@edx.org', unicode_password)
self._assert_response(response, success=False) self._assert_response(response, success=False)
'''
Post the login info
'''
def _login_response(self, email, password): def _login_response(self, email, password):
''' Post the login info '''
post_params = {'email': email, 'password': password} post_params = {'email': email, 'password': password}
return self.client.post(self.url, post_params) return self.client.post(self.url, post_params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment