mailr5424 - /1.3/test_suite/unit_tests/_prompt/test_structure.py


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

Header


Content

Posted by edward on April 08, 2008 - 14:26:
Author: bugman
Date: Tue Apr  8 14:26:31 2008
New Revision: 5424

URL: http://svn.gna.org/viewcvs/relax?rev=5424&view=rev
Log:
Bug fix for the spin_id arg test of the structure.read_pdb() user function.

This now belongs to the structure.load_spins() user function.


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

Modified: 1.3/test_suite/unit_tests/_prompt/test_structure.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_structure.py?rev=5424&r1=5423&r2=5424&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_structure.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_structure.py Tue Apr  8 14:26:31 
2008
@@ -158,6 +158,19 @@
             self.assertRaises(RelaxBinError, 
self.structure_fns.create_vector_dist, force=data[1])
 
 
+    def test_load_spins_argfail_spin_id(self):
+        """The spin_id arg test of the structure.load_spins() user 
function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the None and str arguments, and skip them.
+            if data[0] == 'None' or data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxNoneStrError, 
self.structure_fns.load_spins, spin_id=data[1])
+
+
     def test_read_pdb_argfail_file(self):
         """The file arg test of the structure.read_pdb() user function."""
 
@@ -224,19 +237,6 @@
             self.assertRaises(RelaxBoolError, self.structure_fns.read_pdb, 
file='test.pdb', load_seq=data[1])
 
 
-    def test_read_pdb_argfail_spin_id(self):
-        """The spin_id arg test of the structure.read_pdb() user function."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the None and str arguments, and skip them.
-            if data[0] == 'None' or data[0] == 'str':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxNoneStrError, 
self.structure_fns.read_pdb, file='test.pdb', spin_id=data[1])
-
-
     def test_vectors_argfail_heteronuc(self):
         """The heteronuc arg test of the structure.vectors() user 
function."""
 




Related Messages


Powered by MHonArc, Updated Tue Apr 08 14:40:08 2008