########################################################################### # # Copyright (c) 2019-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_ui_proxy.py # # @author (last) Peter Lucia # @date (last) 21-Aug-2020 # @author (original) Peter Lucia # @date (original) 21-Aug-2020 # ############################################################################ import unittest import sys sys.path.append("../..") from dialin.hd.hemodialysis_device import HD class DGValves(unittest.TestCase): # @unittest.skip("Skipping test_imports") def test_hd_get_reject_reasons(self): hd = HD() i = 0 for key, value in hd.ui.get_reject_reasons().items(): self.assertEqual(i, value) i += 1 if __name__ == '__main__': sys.exit(unittest.main(verbosity=2).result.wasSuccessful())