Commit 94e404e3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix exception RuntimeError to run the test "testShareDocument"

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44262 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad00699e
...@@ -122,7 +122,11 @@ class TestUNGSecurity(ERP5TypeTestCase): ...@@ -122,7 +122,11 @@ class TestUNGSecurity(ERP5TypeTestCase):
self.assertEquals(len(self.portal.web_page_module.searchFolder()), 0) self.assertEquals(len(self.portal.web_page_module.searchFolder()), 0)
ung_web_site = self.portal.web_site_module.ung ung_web_site = self.portal.web_site_module.ung
web_table = ung_web_site.WebSection_userFollowUpWebPage("share-Web.Table") web_table = ung_web_site.WebSection_userFollowUpWebPage("share-Web.Table")
self.stepTic()
self.assertNotEquals(web_table.getFollowUpList(), []) self.assertNotEquals(web_table.getFollowUpList(), [])
self.assertEquals(len(self.portal.web_page_module.searchFolder()), 1)
web_table = self.portal.web_page_module.searchFolder()[0]
self.assertEquals(web_table.getPortalType(), "Web Table")
self.login("ERP5TypeTestCase") self.login("ERP5TypeTestCase")
self.assertEquals(web_table.getFollowUpValue().getFirstName(), "Gabriel") self.assertEquals(web_table.getFollowUpValue().getFirstName(), "Gabriel")
...@@ -195,4 +199,4 @@ class TestUNGSecurity(ERP5TypeTestCase): ...@@ -195,4 +199,4 @@ class TestUNGSecurity(ERP5TypeTestCase):
self.assertEquals(preference_dict, {u'preference': u'portal_preferences/1'}) self.assertEquals(preference_dict, {u'preference': u'portal_preferences/1'})
self.login("ung_user2") self.login("ung_user2")
preference_dict = json.loads(self.portal.Base_getPreferencePathList()) preference_dict = json.loads(self.portal.Base_getPreferencePathList())
self.assertEquals(preference_dict, {u'preference': u'portal_preferences/2'}) self.assertEquals(preference_dict, {u'preference': u'portal_preferences/2'})
\ No newline at end of file
24 25
\ No newline at end of file \ No newline at end of file
document_module document_module
event_module event_module
person_module web_page_module
web_page_module person_module
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment