mailr6856 - /branches/rdc_analysis/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 July 09, 2008 - 11:18:
Author: bugman
Date: Wed Jul  9 11:04:15 2008
New Revision: 6856

URL: http://svn.gna.org/viewcvs/relax?rev=6856&view=rev
Log:
Wrote the model arg unit test for the n_state_model.setup_model() user 
function.


Modified:
    branches/rdc_analysis/test_suite/unit_tests/_prompt/test_n_state_model.py

Modified: 
branches/rdc_analysis/test_suite/unit_tests/_prompt/test_n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/test_suite/unit_tests/_prompt/test_n_state_model.py?rev=6856&r1=6855&r2=6856&view=diff
==============================================================================
--- branches/rdc_analysis/test_suite/unit_tests/_prompt/test_n_state_model.py 
(original)
+++ branches/rdc_analysis/test_suite/unit_tests/_prompt/test_n_state_model.py 
Wed Jul  9 11:04:15 2008
@@ -183,6 +183,19 @@
             self.assertRaises(RelaxStrError, 
self.n_state_model_fns.ref_domain, ref=data[1])
 
 
+    def test_setup_model_argfail_model(self):
+        """Failure of the model arg of the n_state_model.setup_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.setup_model, model=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 Wed Jul 09 11:20:12 2008