Exemple #1
0
 def _role_id(self, role):
     return generate_role_translation_id(self.workflow_id, role)
Exemple #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')))
Exemple #3
0
 def test_generate_role_translation_id(self):
     self.assertEqual(
         'wf-foo--ROLE--Editor',
         generate_role_translation_id('wf-foo', 'Editor'))
Exemple #4
0
 def _role_id(self, role):
     return generate_role_translation_id(self.workflow_id, role)
Exemple #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')))
Exemple #6
0
 def test_generate_role_translation_id(self):
     self.assertEqual(
         'wf-foo--ROLE--Editor',
         generate_role_translation_id('wf-foo', 'Editor'))