def test_not_running_reason(self): report_msg = messages.StonithRestartlessUpdateUnableToPerform( "reason", const.STONITH_RESTARTLESS_UPDATE_UNABLE_TO_PERFORM_REASON_NOT_RUNNING, ) self.assert_message( report_msg, f"{report_msg.message}, please use command 'pcs stonith update' instead", )
def test_other_reason(self): report_msg = messages.StonithRestartlessUpdateUnableToPerform("reason") self.assert_message( report_msg, report_msg.message, )