Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
734b169e
Commit
734b169e
authored
Apr 12, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1851 from MITx/fix/zoldak/test-login-pylint
fix pylint errors in test_login.py
parents
e4c9e1bb
d8c186d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lms/djangoapps/courseware/tests/test_login.py
+4
-3
No files found.
lms/djangoapps/courseware/tests/test_login.py
View file @
734b169e
'''
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment