Author: bugman Date: Tue Feb 19 17:18:21 2008 New Revision: 5027 URL: http://svn.gna.org/viewcvs/relax?rev=5027&view=rev Log: Wrote the cone_type arg unit tests for the n_state_model.cone_pdb() user function. Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py?rev=5027&r1=5026&r2=5027&view=diff ============================================================================== --- branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py (original) +++ branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py Tue Feb 19 17:18:21 2008 @@ -92,6 +92,19 @@ self.assertRaises(RelaxListError, self.n_state_model_fns.CoM, centre=data[1]) + def test_cone_pdb_argfail_cone_type(self): + """The cone_type arg test of the n_state_model.cone_pdb() user function.""" + + # Loop over the data types. + for data in DATA_TYPES: + # Catch the str arguments, and skip them. + if data[0] == 'str': + continue + + # The argument test. + self.assertRaises(RelaxStrError, self.n_state_model_fns.cone_pdb, cone_type=data[1]) + + def test_cone_pdb_argfail_scale(self): """The scale arg test of the n_state_model.cone_pdb() user function."""