Author: bugman Date: Thu Nov 22 01:00:40 2007 New Revision: 3787 URL: http://svn.gna.org/viewcvs/relax?rev=3787&view=rev Log: Implemented the res_name_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=3787&r1=3786&r2=3787&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:40 2007 @@ -102,3 +102,16 @@ # The argument test. self.assertRaises(RelaxNoneIntError, self.sequence_fns.read, file='a', res_num_col=data[1]) + + + def test_read_argfail_res_name_col(self): + """The proper failure of the sequence.read() user function for the res_name_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_name_col=data[1])