diff --git a/cms/djangoapps/contentstore/tests/test_permissions.py b/cms/djangoapps/contentstore/tests/test_permissions.py index dd4903d74c..2534cd8c86 100644 --- a/cms/djangoapps/contentstore/tests/test_permissions.py +++ b/cms/djangoapps/contentstore/tests/test_permissions.py @@ -99,10 +99,8 @@ class TestCourseAccess(ModuleStoreTestCase): user_by_role[role] = [] # Org-based roles are created via org name, rather than course_key if (role is OrgStaffRole) or (role is OrgInstructorRole): - # pylint: disable=protected-access group = role(self.course_key.org) else: - # pylint: disable=protected-access group = role(self.course_key) # NOTE: this loop breaks the roles.py abstraction by purposely assigning # users to one of each possible groupname in order to test that has_course_access @@ -125,7 +123,8 @@ class TestCourseAccess(ModuleStoreTestCase): auth.add_users( self.user, role(copy_course_key.org), - *role(self.course_key.org).users_with_role()) + *role(self.course_key.org).users_with_role() + ) else: auth.add_users( self.user,