Author: bugman Date: Wed May 28 17:56:10 2014 New Revision: 23547 URL: http://svn.gna.org/viewcvs/relax?rev=23547&view=rev Log: Expanded the User_functions.test_dx_map GUI test once again. The new test is to set 2 valid points in the wizard, open and close the Sequence_2D window (twice), and check that the points come back. Modified: trunk/test_suite/gui_tests/test_user_functions.py Modified: trunk/test_suite/gui_tests/test_user_functions.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/test_user_functions.py?rev=23547&r1=23546&r2=23547&view=diff ============================================================================== --- trunk/test_suite/gui_tests/test_user_functions.py (original) +++ trunk/test_suite/gui_tests/test_user_functions.py Wed May 28 17:56:10 2014 @@ -100,6 +100,24 @@ self.assertEqual(points[0][0], 1.0) self.assertEqual(points[0][1], 2.0) self.assertEqual(points[0][2], -3.0) + + # Set 2 valid points in the wizard, open and close the Sequence_2D window (twice), and check that the points come back. + uf.page.uf_args['point'].SetValue(str_to_gui('[[1, 2, 3], [-2, -3, -4]]')) + uf.page.uf_args['point'].selection_win_show() + uf.page.uf_args['point'].selection_win_data() + uf.page.uf_args['point'].selection_win_show() + uf.page.uf_args['point'].selection_win_data() + points = uf.page.uf_args['point'].GetValue() + print("Points: %s" % points) + self.assertEqual(len(points), 2) + self.assertEqual(len(points[0]), 3) + self.assertEqual(len(points[1]), 3) + self.assertEqual(points[0][0], 1.0) + self.assertEqual(points[0][1], 2.0) + self.assertEqual(points[0][2], 3.0) + self.assertEqual(points[1][0], -2.0) + self.assertEqual(points[1][1], -3.0) + self.assertEqual(points[1][2], -4.0) # Set the points to a number of invalid values, checking that they are ignored. for val in ['2', 'die', '[1, 2, 3]', '[1]', '[[1, 2, 3], 1, 2, 3], [1, 2, 3]]']: