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
06821574
Commit
06821574
authored
Jul 23, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test manage_users view for user that is a member of the course team
parent
f438552b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
cms/djangoapps/contentstore/tests/test_users.py
+10
-0
No files found.
cms/djangoapps/contentstore/tests/test_users.py
View file @
06821574
...
...
@@ -47,8 +47,18 @@ class UsersTestCase(CourseTestCase):
def
test_index
(
self
):
resp
=
self
.
client
.
get
(
self
.
index_url
)
# ext_user is not currently a member of the course team, and so should
# not show up on the page.
self
.
assertNotContains
(
resp
,
self
.
ext_user
.
email
)
def
test_index_member
(
self
):
group
,
_
=
Group
.
objects
.
get_or_create
(
name
=
self
.
staff_groupname
)
self
.
ext_user
.
groups
.
add
(
group
)
self
.
ext_user
.
save
()
resp
=
self
.
client
.
get
(
self
.
index_url
)
self
.
assertContains
(
resp
,
self
.
ext_user
.
email
)
def
test_detail
(
self
):
resp
=
self
.
client
.
get
(
self
.
detail_url
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
...
...
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