소스 검색

HUE-4053 [oozie] Fix oozie share workflow test to work with old and new editor mode

Jenny Kim 9 년 전
부모
커밋
82d71b0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      apps/oozie/src/oozie/tests2.py

+ 2 - 1
apps/oozie/src/oozie/tests2.py

@@ -432,7 +432,8 @@ LIMIT $limit"""))
 
       # other user can access document
       response = self.client_not_me.get(reverse('oozie:edit_workflow'), {'workflow': wf_doc.uuid})
-      assert_equal(response.status_code, 200)
+      assert_false('Document does not exist or you don't have the permission to access it.' in response.content,
+                   response.content)
     finally:
       wf_doc.delete()