Commit 4691b7f5 authored by Romain Courteaud's avatar Romain Courteaud

UTF-8 character are not allowed in ID.

parent c1cf21cc
...@@ -11,6 +11,11 @@ from Products.ERP5Type.DateUtils import addToDate ...@@ -11,6 +11,11 @@ from Products.ERP5Type.DateUtils import addToDate
from App.Common import rfc1123_date from App.Common import rfc1123_date
class TestSlapOSCorePromiseSlapOSModuleIdGeneratorAlarm(testSlapOSMixin): class TestSlapOSCorePromiseSlapOSModuleIdGeneratorAlarm(testSlapOSMixin):
def generateNewId(self):
return self.portal.portal_ids.generateNewId(
id_group=('slapos_core_test'))
def test_Module_assertIdGenerator(self): def test_Module_assertIdGenerator(self):
module = self.portal.newContent(portal_type='Person Module', module = self.portal.newContent(portal_type='Person Module',
id=str(self.generateNewId()), id=str(self.generateNewId()),
......
280 281
\ 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