Author: bugman
Date: Wed Jan  9 17:54:22 2008
New Revision: 4568

URL: http://svn.gna.org/viewcvs/relax?rev=4568&view=rev
Log:
Wrote 2 unit tests for the arguments of the n_state_model.set_domain() 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=4568&r1=4567&r2=4568&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 
Wed Jan  9 17:54:22 2008
@@ -25,6 +25,7 @@
 
 # relax module imports.
 from prompt.n_state_model import N_state_model
+from relax_errors import RelaxStrError
 from test_suite.unit_tests.n_state_model_testing_base import 
N_state_model_base_class
 
 # Unit test imports.
@@ -39,4 +40,29 @@
     n_state_model_fns = N_state_model(fake_relax.fake_instance())
 
 
+    def test_set_domain_argfail_tensor(self):
+        """Failure of the tensor arg of the n_state_model.set_domain() user 
function."""
 
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str argument, and skip it.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, 
self.n_state_model_fns.set_domain, tensor=data[1])
+
+
+    def test_set_domain_argfail_domain(self):
+        """Failure of the domain arg of the n_state_model.set_domain() user 
function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str argument, and skip it.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, 
self.n_state_model_fns.set_domain, domain=data[1])
+
+


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to