[oozie] Fix unit test oozie.models2_tests:TestEditor.test_share_workflow
@@ -473,7 +473,7 @@ LIMIT $limit"""))
# other user cannot view document
response = self.client_not_me.get(reverse('oozie:edit_workflow'), {'uuid': wf_doc.uuid})
- assert_equal(response.status_code, 401)
+ assert_equal(response.status_code, 500) # 401 error is caught and raise PopupException (500)
# Share write perm by user
if USE_NEW_EDITOR.get():
