mailr6339 - /branches/relax_data_rearrange/test_suite/unit_tests/_prompt/test_relax_data.py


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

Header


Content

Posted by edward on June 08, 2008 - 14:17:
Author: bugman
Date: Sun Jun  8 14:01:49 2008
New Revision: 6339

URL: http://svn.gna.org/viewcvs/relax?rev=6339&view=rev
Log:
Wrote the arg unit tests of the relax_data.back_calc() user function.


Modified:
    
branches/relax_data_rearrange/test_suite/unit_tests/_prompt/test_relax_data.py

Modified: 
branches/relax_data_rearrange/test_suite/unit_tests/_prompt/test_relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_data_rearrange/test_suite/unit_tests/_prompt/test_relax_data.py?rev=6339&r1=6338&r2=6339&view=diff
==============================================================================
--- 
branches/relax_data_rearrange/test_suite/unit_tests/_prompt/test_relax_data.py
 (original)
+++ 
branches/relax_data_rearrange/test_suite/unit_tests/_prompt/test_relax_data.py
 Sun Jun  8 14:01:49 2008
@@ -41,6 +41,45 @@
     relax_data_fns = Relax_data(fake_relax.fake_instance())
 
 
+    def test_back_calc_argfail_ri_label(self):
+        """The ri_label arg test of the relax_data.back_calc() 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.relax_data_fns.back_calc, 
ri_label=data[1])
+
+
+    def test_back_calc_argfail_frq_label(self):
+        """The frq_label arg test of the relax_data.back_calc() 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.relax_data_fns.back_calc, 
ri_label='R2', frq_label=data[1])
+
+
+    def test_back_calc_argfail_frq(self):
+        """The frq arg test of the relax_data.back_calc() user function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the float argument, and skip it.
+            if data[0] == 'float':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxFloatError, 
self.relax_data_fns.back_calc, ri_label='R2', frq_label='1000', frq=data[1])
+
+
     def test_read_argfail_ri_label(self):
         """The ri_label arg test of the relax_data.read() user function."""
 




Related Messages


Powered by MHonArc, Updated Sun Jun 08 14:40:12 2008