mailr3606 - /1.3/test_suite/unit_tests/prompt/test_spin.py


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

Header


Content

Posted by edward on November 19, 2007 - 00:00:
Author: bugman
Date: Mon Nov 19 00:00:18 2007
New Revision: 3606

URL: http://svn.gna.org/viewcvs/relax?rev=3606&view=rev
Log:
Wrote a unit test for the proper failure of the spin.copy() user function 
spin_to argument.


Modified:
    1.3/test_suite/unit_tests/prompt/test_spin.py

Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_spin.py?rev=3606&r1=3605&r2=3606&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/prompt/test_spin.py (original)
+++ 1.3/test_suite/unit_tests/prompt/test_spin.py Mon Nov 19 00:00:18 2007
@@ -90,4 +90,18 @@
             self.assertRaises(RelaxNoneStrError, self.spin_fns.copy, 
pipe_to=data[1], spin_from='#Old mol:1@111', spin_to='#Old mol:2')
 
 
+    def test_copy_argfail_spin_to(self):
+        """Test the proper failure of the spin.copy() user function for the 
spin_to argument."""
 
+
+        # Loop over the data types.
+        for data in return_data_types():
+            # Catch the str argument, and skip it.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, self.spin_fns.copy, 
spin_from='#Old mol:1', spin_to=data[1])
+
+
+




Related Messages


Powered by MHonArc, Updated Mon Nov 19 00:20:32 2007