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
bd9f8594
Commit
bd9f8594
authored
Nov 01, 2016
by
Jesse Shapiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the stupid errors that copy-paste makes for
parent
fa7c80b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
common/djangoapps/student/tests/test_authz.py
+4
-4
No files found.
common/djangoapps/student/tests/test_authz.py
View file @
bd9f8594
...
...
@@ -141,7 +141,7 @@ class CCXCourseGroupTest(TestCase):
"""
Set up test variables
"""
super
(
CourseGroupTest
,
self
)
.
setUp
()
super
(
C
CXC
ourseGroupTest
,
self
)
.
setUp
()
self
.
global_admin
=
AdminFactory
()
self
.
staff
=
User
.
objects
.
create_user
(
'teststaff'
,
'teststaff+courses@edx.org'
,
'foo'
)
self
.
ccx_course_key
=
CCXLocator
.
from_string
(
'ccx-v1:edX+DemoX+Demo_Course+ccx@1'
)
...
...
@@ -163,13 +163,13 @@ class CCXCourseGroupTest(TestCase):
"""
Test that global admins have no read access
"""
self
.
assertFalse
(
has_studio_
write
_access
(
self
.
global_admin
,
self
.
ccx_course_key
))
self
.
assertFalse
(
has_studio_
read
_access
(
self
.
global_admin
,
self
.
ccx_course_key
))
def
test_no_staff_
write
_access
(
self
):
def
test_no_staff_
read
_access
(
self
):
"""
Test that course staff have no read access
"""
self
.
assertFalse
(
has_studio_
write
_access
(
self
.
staff
,
self
.
ccx_course_key
))
self
.
assertFalse
(
has_studio_
read
_access
(
self
.
staff
,
self
.
ccx_course_key
))
class
CourseGroupTest
(
TestCase
):
...
...
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