def METHOD_NAME(self):
    """
    Tests setting a valid role.
    """
    self._role("role1", "policy1")
    self._expect_setting_get(ALLOWED_SIGNER_ADDRESS)
    self._expect_policy_get("policy1", "PERMIT_KEY *")
    self._expect_role_get("role1")
    self._expect_role_set("role1", "policy1")
    self._expect_add_event("role1")
    self._expect_ok()