mailr6586 - /1.3/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 29, 2008 - 14:58:
Author: bugman
Date: Sun Jun 29 14:49:33 2008
New Revision: 6586

URL: http://svn.gna.org/viewcvs/relax?rev=6586&view=rev
Log:
Added a new arg unit test for the relax_data.copy() user function, checking 
when both pipes are None.


Modified:
    1.3/test_suite/unit_tests/_prompt/test_relax_data.py

Modified: 1.3/test_suite/unit_tests/_prompt/test_relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_relax_data.py?rev=6586&r1=6585&r2=6586&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_relax_data.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_relax_data.py Sun Jun 29 14:49:33 
2008
@@ -106,6 +106,13 @@
             self.assertRaises(RelaxNoneStrError, self.relax_data_fns.copy, 
pipe_from='', pipe_to=data[1])
 
 
+    def test_copy_argfail_both_pipes(self):
+        """The pipe_from and pipe_to arg test of the relax_data.copy() user 
function."""
+
+        # Test that both cannot be None (the default)!
+        self.assertRaises(RelaxError, self.relax_data_fns.copy)
+
+
     def test_copy_argfail_ri_label(self):
         """The ri_label arg test of the relax_data.copy() user function."""
 




Related Messages


Powered by MHonArc, Updated Sun Jun 29 15:00:27 2008