Commit c7a4b1ef authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix testWebSection_getDocumentUrl

parent 27509ec9
......@@ -271,11 +271,11 @@ class TestUNG(ERP5TypeTestCase):
self.stepTic()
kw = dict(brain=web_illustration)
url = self.portal.WebSection_getDocumentUrl(**kw)
pattern = "^http.*\/web_page_module\/[0-9]+\/WebIllustration_viewEditor\?editable_mode\:int\=1"
pattern = "^http.*\/web_page_module\/[0-9]+\?editable_mode\:int\=1"
self.assertNotEquals(re.search(pattern, url), None)
kw = dict(brain=web_page)
url = self.portal.WebSection_getDocumentUrl(**kw)
pattern = "^http.*\/web_page_module\/[0-9]+\/WebPage_viewEditor\?editable_mode\:int\=1"
pattern = "^http.*\/web_page_module\/[0-9]+\?editable_mode\:int\=1"
self.assertNotEquals(re.search(pattern, url), None, url)
def testBase_updateCalendarEventList(self):
......
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