diff --git a/product/ERP5Security/tests/testERP5Security.py b/product/ERP5Security/tests/testERP5Security.py
index f008013002310c1d774f1c43386752c14baa6416..f11da7176eeab03c7550712e82d0118f0413a76b 100644
--- a/product/ERP5Security/tests/testERP5Security.py
+++ b/product/ERP5Security/tests/testERP5Security.py
@@ -830,7 +830,7 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
       id = 'Alternate')
     self._getTypeInfo().newContent(portal_type='Role Information',
       role_name='Assignor',
-      local_role_group_value=self.portal.portal_categories.local_role_group.Alternate.getRelativeUrl(),
+      local_role_group_value=self.portal.portal_categories.local_role_group.Alternate,
       role_category=self.defined_category)
 
     self.loginAsUser(self.username)