mailr6346 - /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:42:
Author: bugman
Date: Sun Jun  8 14:42:28 2008
New Revision: 6346

URL: http://svn.gna.org/viewcvs/relax?rev=6346&view=rev
Log:
Wrote 4 arg unit tests for the relax_data.copy() 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=6346&r1=6345&r2=6346&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:42:28 2008
@@ -80,6 +80,58 @@
             self.assertRaises(RelaxFloatError, 
self.relax_data_fns.back_calc, ri_label='R2', frq_label='1000', frq=data[1])
 
 
+    def test_copy_argfail_pipe_from(self):
+        """The pipe_from arg test of the relax_data.copy() 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.copy, 
pipe_from=data[1])
+
+
+    def test_copy_argfail_pipe_to(self):
+        """The pipe_to arg test of the relax_data.copy() 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.copy, 
pipe_from='', pipe_to=data[1])
+
+
+    def test_copy_argfail_ri_label(self):
+        """The ri_label arg test of the relax_data.copy() user function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str argument, and skip it.
+            if data[0] == 'None' or data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxNoneStrError, self.relax_data_fns.copy, 
pipe_from='', pipe_to='', ri_label=data[1])
+
+
+    def test_copy_argfail_frq_label(self):
+        """The frq_label arg test of the relax_data.copy() user function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str argument, and skip it.
+            if data[0] == 'None' or data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxNoneStrError, self.relax_data_fns.copy, 
pipe_from='', pipe_to='', ri_label='R2', frq_label=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 16:00:18 2008