mailr8673 - /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:18:
Author: semor
Date: Tue Jan 27 16:18:37 2009
New Revision: 8673

URL: http://svn.gna.org/viewcvs/relax?rev=8673&view=rev
Log:
Added two more unit tests.


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=8673&r1=8672&r2=8673&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:18:37 2009
@@ -63,3 +63,28 @@
 
         # The argument test.
         self.assertRaises(RelaxNoneNumError, 
self.relax_disp_fns.cpmg_delayT, delayT=data[1])
+
+
+    def test_relax_cpmg_frq_argfail_cpmg_frq(self):
+        """The cpmg_frq arg test of the relax_disp.cpmg_frq() user 
function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the float, int and None arguments, and skip them.
+            if data[0] == 'float' or data[0] == 'int' or data[0] == 'None':
+                continue
+
+        # 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."""
+
+        # 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.cpmg_frq, 
spectrum_id=data[1])




Related Messages


Powered by MHonArc, Updated Tue Jan 27 16:40:02 2009