Index: tests/test_hd_simulator.py =================================================================== diff -u -rc3cc81dada72714b9675594cc0c6a79975e8991d -r56f9771ad247938a890639f3cf5220076ab49157 --- tests/test_hd_simulator.py (.../test_hd_simulator.py) (revision c3cc81dada72714b9675594cc0c6a79975e8991d) +++ tests/test_hd_simulator.py (.../test_hd_simulator.py) (revision 56f9771ad247938a890639f3cf5220076ab49157) @@ -83,11 +83,37 @@ sleep(1) hd_simulator.alarms.cmd_send_clear_alarms() +def test_valid_parameters(): + hd_simulator = HDSimulator(log_level="DEBUG") + rejections = [ + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # overall response + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # blood flow + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # dialysate flow + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # duration + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # heparin dispensing rate + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # heparin bolus volume + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # heparin stop time + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # saline bolus + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # acid concentrate + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # bicarbonate concentrate + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # dialyzer type + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # dialysate temperature + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # arterial pressure limit low + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # arterial pressure limit high + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # venous pressure limit low + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # venous pressure limit high + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # blood pressure measurement interval + RequestRejectReasons.REQUEST_REJECT_REASON_NONE, # rinseback flow rate + ] + hd_simulator.cmd_send_treatment_parameter_validation_response(rejections) + + if __name__ == '__main__': # test_clear_alarms() - sleep(1) - test_poweroff() + # sleep(1) + # test_poweroff() + test_valid_parameters()