I corrected one mistake (portal_workflow should be portal, but the test result is still the same: invokeFactory produces an UnAuthorized exception) self.assertTrue(permission in testUtils.portal.possible_permissions())