def test_095_manually_unpurge_role(self): """Testing manually un-purging a role""" # Logged in as admin_user # Manually unpurge, then undelete the role for later test runs # TODO: If we decide to implement the GUI feature for un-purging a role, replace this with a method call role_two.purged = False flush(role_two) self.undelete_role(self.security.encode_id(role_two.id), role_two.name)
def test_095_manually_unpurge_role( self ): """Testing manually un-purging a role""" # Logged in as admin_user # Manually unpurge, then undelete the role for later test runs # TODO: If we decide to implement the GUI feature for un-purging a role, replace this with a method call role_two.purged = False flush( role_two ) self.undelete_role( self.security.encode_id( role_two.id ), role_two.name )
def test_080_manually_unpurge_user(self): """Testing manually un-purging a user account""" # Logged in as admin_user # Reset the user for later test runs. The user's private Role and DefaultUserPermissions for that role # should have been preserved, so all we need to do is reset purged and deleted. # TODO: If we decide to implement the GUI feature for un-purging a user, replace this with a method call regular_user3.purged = False regular_user3.deleted = False flush(regular_user3)
def test_080_manually_unpurge_user( self ): """Testing manually un-purging a user account""" # Logged in as admin_user # Reset the user for later test runs. The user's private Role and DefaultUserPermissions for that role # should have been preserved, so all we need to do is reset purged and deleted. # TODO: If we decide to implement the GUI feature for un-purging a user, replace this with a method call regular_user3.purged = False regular_user3.deleted = False flush( regular_user3 )