Author: bugman Date: Tue Nov 20 13:38:51 2007 New Revision: 3663 URL: http://svn.gna.org/viewcvs/relax?rev=3663&view=rev Log: Implemented the res_name arg unit test for the residue.create() user function. Modified: 1.3/test_suite/unit_tests/prompt/test_residue.py Modified: 1.3/test_suite/unit_tests/prompt/test_residue.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_residue.py?rev=3663&r1=3662&r2=3663&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/prompt/test_residue.py (original) +++ 1.3/test_suite/unit_tests/prompt/test_residue.py Tue Nov 20 13:38:51 2007 @@ -117,17 +117,17 @@ self.assertRaises(RelaxIntError, self.residue_fns.create, res_num=data[1], res_name='NH') - def test_create_argfail_spin_name(self): - """Test the proper failure of the spin.create() user function for the spin_name argument.""" - - # Loop over the data types. - for data in return_data_types(): - # Catch the str arguments, and skip them. - if data[0] == 'str': - continue - - # The argument test. - self.assertRaises(RelaxStrError, self.spin_fns.create, spin_name=data[1], spin_num=1) + def test_create_argfail_res_name(self): + """Test the proper failure of the residue.create() user function for the res_name argument.""" + + # Loop over the data types. + for data in return_data_types(): + # Catch the str arguments, and skip them. + if data[0] == 'str': + continue + + # The argument test. + self.assertRaises(RelaxStrError, self.residue_fns.create, res_name=data[1], res_num=1) def test_create_argfail_res_id(self):