########################################################################### # # Copyright (c) 2020 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file test_buttons.py # # @date 06-Aug-2020 # @author P. Lucia # # @brief # # ############################################################################ import sys sys.path.append("..") from dialin.hd.hemodialysis_device import HD from dialin.hd.constants import RESET, NO_RESET def test_buttons(): hd = HD(log_level="DEBUG") hd.buttons.PRESSED hd.buttons.cmd_stop_button_override(hd.buttons.PRESSED, RESET) hd.buttons.cmd_stop_button_override(hd.buttons.PRESSED, NO_RESET) if __name__ == '__main__': test_buttons()