Index: tst_instructions_poc/test.py =================================================================== diff -u -r7102ce1220edcd2ae6a08e13f8e815528dba654f -rdc194f1ceb84a009dae78a5cb864c835223d4cd7 --- tst_instructions_poc/test.py (.../test.py) (revision 7102ce1220edcd2ae6a08e13f8e815528dba654f) +++ tst_instructions_poc/test.py (.../test.py) (revision dc194f1ceb84a009dae78a5cb864c835223d4cd7) @@ -11,22 +11,22 @@ hd_simulator = HDSimulator() contents = [] instructions = [] -instruction_textobj = [names.o_instruction_one,names.o_instruction_two,names.o_instruction_three] +instruction_textobj = [names.o_instruction_ws_screen_one,names.o_instruction_ws_screen_two,names.o_instruction_ws_screen_three] conf_dict = {} def verify_instruction(): utils.waitForGUI(0.2) - with open(utility.INSTRUCTION_CONF_LOCATION, 'r') as f: - contents = f.readlines() - for i in contents: - length =len(i) - if i[0] =="[": + with open(utility.INSTRUCTION_CONF_LOCATION, 'r') as conf_file: + contents = conf_file.readlines() + for line in contents: + length =len(line) + if line[0] =="[": continue else: - p = i.split("=") + conf_data = line.split("=") if length > 2: - conf_dict.update([(p[1],p[0])]) - instructions.append(conf_dict.get(p[1])) + conf_dict.update([(conf_data[1],conf_data[0])]) + instructions.append(conf_dict.get(conf_data[1])) return instructions def verify_instruction_watersample(instruction_list):