Merge pull request #19452 from edx/REVE-132

Ensure masquerade works in courses that haven't started yet
This commit is contained in:
Matthew Piatetsky
2018-12-19 09:58:18 -05:00
committed by GitHub
7 changed files with 12 additions and 26 deletions

View File

@@ -641,8 +641,8 @@ class TestCourseOutlinePreview(SharedModuleStoreTestCase):
self.assertEqual(response.status_code, 200)
self.assertContains(response, 'Future Chapter')
# Verify that staff masquerading as a learner does not see the future chapter.
# Verify that staff masquerading as a learner see the future chapter.
self.update_masquerade(course, role='student')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertNotContains(response, 'Future Chapter')
self.assertContains(response, 'Future Chapter')