Index: tests/peter/test_hd_records.py =================================================================== diff -u -r8474f8e345f165187d4dde17840575ee4e98a9b4 -ra901fe931c08daea69337c1f44135637a764ce7a --- tests/peter/test_hd_records.py (.../test_hd_records.py) (revision 8474f8e345f165187d4dde17840575ee4e98a9b4) +++ tests/peter/test_hd_records.py (.../test_hd_records.py) (revision a901fe931c08daea69337c1f44135637a764ce7a) @@ -96,11 +96,13 @@ hd = HD(log_level="DEBUG") if hd.cmd_log_in_to_hd(resend=False): - #hd.calibration_record.cmd_reset_hd_calibration_record() + hd.calibration_record.cmd_reset_hd_calibration_record() + print(hd.calibration_record.hd_calibration_record) hd.system_record.cmd_reset_hd_system_record() - #hd.service_record.cmd_reset_hd_service_record() + hd.service_record.cmd_reset_hd_service_record() + def test_hd_system_record(): hd = HD(log_level="DEBUG") if hd.cmd_log_in_to_hd(resend=False): @@ -115,8 +117,8 @@ with open("/home/fw/projects/dialin/tests/peter/hd_sys_record_old.log", 'w') as f: f.write(record_old_formatted) - hd.system_record.hd_system_record["system_record"]["top_level_pn"][1] = "ASD-S1234" - hd.system_record.hd_system_record["system_record"]["top_level_sn"][1] = "ASD-S1234" + hd.system_record.hd_system_record['system_record']['top_level_pn'][1] = 'ASD-S123' + hd.system_record.hd_system_record["system_record"]["top_level_sn"][1] = 'ASD-S1234' hd.system_record.hd_system_record["system_record"]["mfg_location"][1] = 9 hd.system_record.hd_system_record["system_record"]["crc"][1] = \ NVOpsUtils.get_group_record_crc(hd.system_record.hd_system_record["system_record"]) @@ -127,10 +129,10 @@ if __name__ == "__main__": - #test_hd_reset_record_record() + test_hd_reset_record_record() #test_hd_calibration_record() # test_hd_service_record() #test_hd_reset_system_record() - test_hd_system_record() + #test_hd_system_record() # test_crc() # test_hd_system_record()