Author: bugman Date: Thu Nov 22 01:00:07 2007 New Revision: 3786 URL: http://svn.gna.org/viewcvs/relax?rev=3786&view=rev Log: Implemented the res_num_col arg unit test for the sequence.read() user function. Modified: 1.3/test_suite/unit_tests/_prompt/test_sequence.py Modified: 1.3/test_suite/unit_tests/_prompt/test_sequence.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_sequence.py?rev=3786&r1=3785&r2=3786&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_prompt/test_sequence.py (original) +++ 1.3/test_suite/unit_tests/_prompt/test_sequence.py Thu Nov 22 01:00:07 2007 @@ -89,3 +89,16 @@ # The argument test. self.assertRaises(RelaxNoneIntError, self.sequence_fns.read, file='a', mol_name_col=data[1]) + + + def test_read_argfail_res_num_col(self): + """The proper failure of the sequence.read() user function for the res_num_col argument.""" + + # Loop over the data types. + for data in return_data_types(): + # Catch the None, int, and bin arguments, and skip them. + if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin': + continue + + # The argument test. + self.assertRaises(RelaxNoneIntError, self.sequence_fns.read, file='a', res_num_col=data[1])