diff --git a/product/ERP5/tests/testERP5Base.py b/product/ERP5/tests/testERP5Base.py index 045f151e8f31658eab4d5b1f2e6ce778b2988ec2..65b8cb91f4956c72f7b3a2b413b190aa4567079c 100644 --- a/product/ERP5/tests/testERP5Base.py +++ b/product/ERP5/tests/testERP5Base.py @@ -1315,7 +1315,7 @@ class TestERP5Base(ERP5TypeTestCase): def test_ERP5Site_checkDataWithScript(self): test = 'test_ERP5Site_checkDataWithScript' createZODBPythonScript(self.getSkinsTool().custom, test, '', - 'return context.getRelativeUrl(),') + 'return context.absolute_url(relative=1),') organisation = self.getOrganisationModule() \ .newContent(portal_type='Organisation') @@ -1335,7 +1335,7 @@ class TestERP5Base(ERP5TypeTestCase): self.assertEquals(len(relative_url_list), len(set(relative_url_list))) for obj in organisation, person, person.getDefaultEmailValue(): - self.assertTrue(obj.getRelativeUrl() in relative_url_list) + self.assertTrue(obj.absolute_url(relative=1) in relative_url_list) for relative_url in relative_url_list: self.assertTrue('/' in relative_url) self.assertNotEquals(None, self.portal.unrestrictedTraverse(relative_url))