Index: tst_post/test.py =================================================================== diff -u -r53d03492231cc2612d7b1dfdc35e9804fbd960f6 -rdd61fcc70b00d5902cbbf8cdc250f060d0f1cfb1 --- tst_post/test.py (.../test.py) (revision 53d03492231cc2612d7b1dfdc35e9804fbd960f6) +++ tst_post/test.py (.../test.py) (revision dd61fcc70b00d5902cbbf8cdc250f060d0f1cfb1) @@ -17,6 +17,9 @@ from dialin.ui.dg_simulator import DGSimulator from dialin.ui.hd_simulator import HDSimulator +hd_simulator = HDSimulator() +dg_simulator = DGSimulator() + MSGS_AND_CONDITIONS = { 1: [True, False], 5: [True, False], 2: [True, False], 4: [True, False], 8: [True, False], 9: [False, False], 3: [True, False], 10: [True, False], 15: [True, False], @@ -25,10 +28,7 @@ 6: [False, False], 21: [True, False], 18: [True, False], 7: [True, True], 16: [False, True], 19: [True, True], 22: [True, True], - } - -hd_simulator = HDSimulator() -dg_simulator = DGSimulator() + } def get_progress(): """ @@ -48,6 +48,7 @@ Method to verify the progress @param value - (int) single message @final_msg_posted - (bool) True/False + @return - None """ progress = pyInt(get_progress()) if final_msg_posted is True: @@ -62,7 +63,7 @@ message posted @param final_msg - (bool) final message(True/False) @param final_msg_posted - (bool) if this is the final post message(True/False) - @return: None + @return - None """ test.startSection("Verifying the status") if final_msg == True and final_msg_posted == True: @@ -87,9 +88,10 @@ def post_a_message_and_verify_progress_and_completion(msgs_and_conditions): """ - method to post a message and verify the progress bar and - if final message is posted + Method to post message and verify the + progress and completion @param msgs_and_conditions - (list) list of messages and conditions + @return - None """ for msg, conditions in msgs_and_conditions.items(): final_msg = conditions[0]