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