mailr8675 - /branches/relax_disp/test_suite/unit_tests/_prompt/test_relax_disp.py


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

Header


Content

Posted by sebastien . morin . 1 on January 27, 2009 - 16:34:
Author: semor
Date: Tue Jan 27 16:34:02 2009
New Revision: 8675

URL: http://svn.gna.org/viewcvs/relax?rev=8675&view=rev
Log:
One more unit test.


Modified:
    branches/relax_disp/test_suite/unit_tests/_prompt/test_relax_disp.py

Modified: branches/relax_disp/test_suite/unit_tests/_prompt/test_relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/unit_tests/_prompt/test_relax_disp.py?rev=8675&r1=8674&r2=8675&view=diff
==============================================================================
--- branches/relax_disp/test_suite/unit_tests/_prompt/test_relax_disp.py 
(original)
+++ branches/relax_disp/test_suite/unit_tests/_prompt/test_relax_disp.py Tue 
Jan 27 16:34:02 2009
@@ -77,6 +77,7 @@
         # The argument test.
         self.assertRaises(RelaxNoneNumError, self.relax_disp_fns.cpmg_frq, 
cpmg_frq=data[1])
 
+
     def test_relax_cpmg_frq_argfail_spectrum_id(self):
         """The spectrum_id arg test of the relax_disp.cpmg_frq() user 
function."""
 
@@ -88,3 +89,16 @@
 
         # The argument test.
         self.assertRaises(RelaxStrError, self.relax_disp_fns.cpmg_frq, 
spectrum_id=data[1])
+
+
+    def test_relax_exp_type_argfail_exp(self):
+        """The exp arg test of the relax_disp.exp_type() 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.relax_disp_fns.exp_type, 
exp=data[1])




Related Messages


Powered by MHonArc, Updated Tue Jan 27 17:00:05 2009