Beispiel #1
0
 def _role_id(self, role):
     return generate_role_translation_id(self.workflow_id, role)
Beispiel #2
0
 def test_generate_role_translation_id_with_lowercase_string(self):
     self.assertEqual(
         'wf-foo--ROLE--Editor',
         generate_role_translation_id('wf-foo',
                                      LowerCaseString('Editor')))
Beispiel #3
0
 def test_generate_role_translation_id(self):
     self.assertEqual(
         'wf-foo--ROLE--Editor',
         generate_role_translation_id('wf-foo', 'Editor'))
Beispiel #4
0
 def _role_id(self, role):
     return generate_role_translation_id(self.workflow_id, role)
Beispiel #5
0
 def test_generate_role_translation_id_with_lowercase_string(self):
     self.assertEqual(
         'wf-foo--ROLE--Editor',
         generate_role_translation_id('wf-foo',
                                      LowerCaseString('Editor')))
Beispiel #6
0
 def test_generate_role_translation_id(self):
     self.assertEqual(
         'wf-foo--ROLE--Editor',
         generate_role_translation_id('wf-foo', 'Editor'))