Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-openid-auth
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
OpenEdx
django-openid-auth
Commits
f6107f42
Commit
f6107f42
authored
Mar 21, 2011
by
Michael Hall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish new test and altered comments
parent
6764d4c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
django_openid_auth/tests/test_views.py
+5
-3
No files found.
django_openid_auth/tests/test_views.py
View file @
f6107f42
...
@@ -405,7 +405,7 @@ class RelyingPartyTests(TestCase):
...
@@ -405,7 +405,7 @@ class RelyingPartyTests(TestCase):
claimed_id
=
'http://example.com/identity'
,
claimed_id
=
'http://example.com/identity'
,
display_id
=
'http://example.com/identity'
)
display_id
=
'http://example.com/identity'
)
# identity url is for 'testuser2000'
# identity url is for 'testuser2000
eight
'
openid_req
=
{
'openid_identifier'
:
'http://example.com/identity'
,
openid_req
=
{
'openid_identifier'
:
'http://example.com/identity'
,
'next'
:
'/getuser/'
}
'next'
:
'/getuser/'
}
# but returned username is for 'testuser', which already exists for another identity
# but returned username is for 'testuser', which already exists for another identity
...
@@ -416,8 +416,10 @@ class RelyingPartyTests(TestCase):
...
@@ -416,8 +416,10 @@ class RelyingPartyTests(TestCase):
# If OPENID_FOLLOW_RENAMES, attempt to change username to 'testuser'
# If OPENID_FOLLOW_RENAMES, attempt to change username to 'testuser'
# but since that username is already taken by someone else, we go through
# but since that username is already taken by someone else, we go through
# the process of adding +i to it. Since the user for this identity url
# the process of adding +i to it. Even though it looks like the username
# already has a name matching that pattern, check if first.
# follows the nickname+i scheme, it has non-numbers in the suffix, so
# it's not an auto-generated one. The regular process of renaming to
# 'testuser' has a conflict, so we get +2 at the end.
self
.
assertEquals
(
response
.
content
,
'testuser2'
)
self
.
assertEquals
(
response
.
content
,
'testuser2'
)
# The user's full name and email have been updated.
# The user's full name and email have been updated.
...
...
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