Index: tst_instructions_poc/test.py =================================================================== diff -u -r819ca4ef0dea8f3da4fd513f2b58f81fcc931dc9 -rc79559a8ecd6dc676c7aed956ba1a5d1e45534a0 --- tst_instructions_poc/test.py (.../test.py) (revision 819ca4ef0dea8f3da4fd513f2b58f81fcc931dc9) +++ tst_instructions_poc/test.py (.../test.py) (revision c79559a8ecd6dc676c7aed956ba1a5d1e45534a0) @@ -14,7 +14,6 @@ import names import os -import re from dialin.ui import utils from dialin.ui.hd_simulator import HDSimulator @@ -465,7 +464,7 @@ # Update instruction text to reflect expected value in instructions string heparinInstruction = instr_with_title["Heparin Syringe"]["instruction_set"][0]["instruction"] - instr_with_title["Heparin Syringe"]["instruction_set"][0]["instruction"] = re.sub("{.*?}", "0.1mL", heparinInstruction) + instr_with_title["Heparin Syringe"]["instruction_set"][0]["instruction"] = utility.get_heparin_string_with_mock(originalString = heparinInstruction) hd_simulator.cmd_send_heparin_response(syringePumpVolumeDelivered = 0.2, syringePumpVolumeRequired = 0.1) verify_instruction_and_image("Heparin Syringe", textObjectName = instructionScreenObject, rightArrowObject = instructionRightArrow)