Merge pull request #19881 from edx/LEARNER-7131/improve-403-error-handling

Improve 403 error handling
This commit is contained in:
Uzair Rasheed
2019-02-27 18:27:25 +05:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -321,7 +321,7 @@ class ModuleRenderTestCase(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
"""Test that anonymous GET is allowed."""
dispatch_url = self._get_dispatch_url()
response = self.client.get(dispatch_url)
self.assertEquals(200, response.status_code)
self.assertEquals(403, response.status_code)
def test_anonymous_post_xblock_callback(self):
"""Test that anonymous POST is not allowed."""