mailr3600 - /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 18, 2007 - 23:42:
Author: bugman
Date: Sun Nov 18 23:42:27 2007
New Revision: 3600

URL: http://svn.gna.org/viewcvs/relax?rev=3600&view=rev
Log:
Wrote a unit test for the proper failure of the spin.copy() user function 
pipe_from 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=3600&r1=3599&r2=3600&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/prompt/test_spin.py (original)
+++ 1.3/test_suite/unit_tests/prompt/test_spin.py Sun Nov 18 23:42:27 2007
@@ -25,6 +25,7 @@
 
 # relax module imports.
 from data import Data as relax_data_store
+from data_types import return_data_types
 from prompt.spin import Spin
 from relax_errors import RelaxError, RelaxNoPipeError
 from test_suite.unit_tests.spin_testing_base import Spin_base_class
@@ -47,3 +48,11 @@
     spin_fns = Spin(relax)
 
 
+    def test_copy_argfail_pipe_from(self):
+        """Test the proper failure of the spin.copy() user function for the 
pipe_from argument."""
+
+
+        # Loop over the data types.
+        for data in return_data_types():
+            # Copy a spin to a number which already exists.
+            self.assertRaises(RelaxError, self.spin_fns.copy, 
pipe_from=data, spin_from='#Old mol:1@111', spin_to='#Old mol:2')




Related Messages


Powered by MHonArc, Updated Mon Nov 19 00:00:16 2007