mailr4943 - /branches/N_state_model/test_suite/unit_tests/_prompt/test_n_state_model.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on February 11, 2008 - 15:38:
Author: bugman
Date: Mon Feb 11 15:38:31 2008
New Revision: 4943

URL: http://svn.gna.org/viewcvs/relax?rev=4943&view=rev
Log:
Wrote the ref arg unit test for the n_state_model.model() 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=4943&r1=4942&r2=4943&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 
Mon Feb 11 15:38:31 2008
@@ -53,6 +53,19 @@
             self.assertRaises(RelaxIntError, self.n_state_model_fns.model, 
N=data[1])
 
 
+    def test_model_argfail_ref(self):
+        """Failure of the ref arg of the n_state_model.model() 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.model, 
ref=data[1])
+
+
     def test_set_domain_argfail_tensor(self):
         """Failure of the tensor arg of the n_state_model.set_domain() user 
function."""
 




Related Messages


Powered by MHonArc, Updated Mon Feb 11 16:00:10 2008