def test_action_groups(self, browser): specdetails.visit('Bar Workflow (wf-bar)') mapping = specdetails.action_groups() self.assertIn('view (view)', mapping, 'No action group "view" found.') self.assertIn('edit (edit)', mapping, 'No action group "edit" found.') self.assertIn( 'Access contents information', mapping['view (view)'], 'Permission "Access contents information" not in action' ' group "view"?') self.assertNotIn( 'Modify portal content', mapping['view (view)'], 'Permission "Modify portal content" should not be in action' ' group "view".') self.assertIn( 'Modify portal content', mapping['edit (edit)'], 'Permission "Modify portal content" not in action' ' group "edit"?')
def test_german_action_groups(self, browser): self.switch_language('de') specdetails.visit('Bar Workflow (wf-bar)') mapping = specdetails.action_groups() self.assertIn('ansehen (view)', mapping.keys(), 'No action group "ansehen" found.')