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