def _role_id(self, role): return generate_role_translation_id(self.workflow_id, role)
def test_generate_role_translation_id_with_lowercase_string(self): self.assertEqual( 'wf-foo--ROLE--Editor', generate_role_translation_id('wf-foo', LowerCaseString('Editor')))
def test_generate_role_translation_id(self): self.assertEqual( 'wf-foo--ROLE--Editor', generate_role_translation_id('wf-foo', 'Editor'))