Author: bugman Date: Tue Nov 20 10:14:45 2007 New Revision: 3615 URL: http://svn.gna.org/viewcvs/relax?rev=3615&view=rev Log: Added a unit test for the proper failure of the spin.create() user function for the spin_name arg. Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_spin.py?rev=3615&r1=3614&r2=3615&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/prompt/test_spin.py (original) +++ 1.3/test_suite/unit_tests/prompt/test_spin.py Tue Nov 20 10:14:45 2007 @@ -113,4 +113,18 @@ self.assertRaises(RelaxIntError, self.spin_fns.create, spin_num=data[1], spin_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) + + + +