Author: bugman Date: Tue Feb 12 15:00:06 2008 New Revision: 4961 URL: http://svn.gna.org/viewcvs/relax?rev=4961&view=rev Log: Big fix for the pivot arg unit test for the n_state_model.pivot_point() user function. Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py?rev=4961&r1=4960&r2=4961&view=diff ============================================================================== --- branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py (original) +++ branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py Tue Feb 12 15:00:06 2008 @@ -77,9 +77,13 @@ # Catch the list arguments. if type(data[1]) == list: + # The wrong length. + if len(data[1]) != 3: + self.assertRaises(RelaxLenError, self.n_state_model_fns.pivot_point, pivot=data[1]) + # Catch the int, float, and number list arguments, and skip them. - if data[0] == 'int list' or data[0] == 'float list' or data[0] == 'number list': - self.assertRaises(RelaxLenError, self.n_state_model_fns.pivot_point, pivot=data[1]) + elif data[0] == 'int list' or data[0] == 'float list' or data[0] == 'number list': + continue # The argument test. else: