Commit f6107f42 by Michael Hall

Finish new test and altered comments

parent 6764d4c7
...@@ -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 'testuser2000eight'
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.
......
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