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
5d57b5db
Commit
5d57b5db
authored
Jun 18, 2013
by
Ricardo Kirkner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure account_verified and permission match
parent
be4ab878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
django_openid_auth/tests/test_auth.py
+4
-0
No files found.
django_openid_auth/tests/test_auth.py
View file @
5d57b5db
...
@@ -217,8 +217,12 @@ class OpenIDBackendTests(TestCase):
...
@@ -217,8 +217,12 @@ class OpenIDBackendTests(TestCase):
email
=
u"someotheruser@example.com"
,
account_verified
=
expected
)
email
=
u"someotheruser@example.com"
,
account_verified
=
expected
)
self
.
backend
.
update_user_details
(
user_openid
,
data
,
response
)
self
.
backend
.
update_user_details
(
user_openid
,
data
,
response
)
# refresh object from the database
user_openid
=
UserOpenID
.
objects
.
get
(
pk
=
user_openid
.
pk
)
# check the verification status
# check the verification status
self
.
assertEqual
(
user_openid
.
account_verified
,
expected
)
self
.
assertEqual
(
user_openid
.
account_verified
,
expected
)
self
.
assertEqual
(
user_openid
.
user
.
has_perm
(
'django_openid_auth.account_verified'
),
expected
)
def
test_update_user_openid_unverified
(
self
):
def
test_update_user_openid_unverified
(
self
):
user_openid
=
self
.
make_user_openid
()
user_openid
=
self
.
make_user_openid
()
...
...
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