mailr6096 - /branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_residue.py


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

Header


Content

Posted by edward on May 04, 2008 - 15:24:
Author: bugman
Date: Sun May  4 15:10:48 2008
New Revision: 6096

URL: http://svn.gna.org/viewcvs/relax?rev=6096&view=rev
Log:
Fixes for the residue.name() and residue.number() user function unit tests.


Modified:
    
branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_residue.py

Modified: 
branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_residue.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_residue.py?rev=6096&r1=6095&r2=6096&view=diff
==============================================================================
--- 
branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_residue.py
 (original)
+++ 
branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_residue.py
 Sun May  4 15:10:48 2008
@@ -158,47 +158,47 @@
             self.assertRaises(RelaxNoneStrError, self.residue_fns.display, 
res_id=data[1])
 
 
-    def test_rename_argfail_res_id(self):
-        """Test the proper failure of the residue.rename() user function for 
the res_id argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the str arguments, and skip them.
-            if data[0] == 'str':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxStrError, self.residue_fns.rename, 
res_id=data[1])
-
-
-    def test_rename_argfail_new_name(self):
-        """Test the proper failure of the residue.rename() user function for 
the new_name argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the str arguments, and skip them.
-            if data[0] == 'str':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxStrError, self.residue_fns.rename, 
new_name=data[1])
-
-
-    def test_renumber_argfail_res_id(self):
-        """Test the proper failure of the residue.renumber() user function 
for the res_id argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the str arguments, and skip them.
-            if data[0] == 'str':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxStrError, self.residue_fns.renumber, 
res_id=data[1])
-
-
-    def test_renumber_argfail_new_number(self):
-        """Test the proper failure of the residue.renumber() user function 
for the new_number argument."""
+    def test_name_argfail_res_id(self):
+        """Test the proper failure of the residue.name() user function for 
the res_id argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str arguments, and skip them.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, self.residue_fns.name, 
res_id=data[1])
+
+
+    def test_name_argfail_name(self):
+        """Test the proper failure of the residue.name() user function for 
the name argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str arguments, and skip them.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, self.residue_fns.name, 
name=data[1])
+
+
+    def test_number_argfail_res_id(self):
+        """Test the proper failure of the residue.number() user function for 
the res_id argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str arguments, and skip them.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, self.residue_fns.number, 
res_id=data[1])
+
+
+    def test_number_argfail_number(self):
+        """Test the proper failure of the residue.number() user function for 
the number argument."""
 
         # Loop over the data types.
         for data in DATA_TYPES:
@@ -207,4 +207,4 @@
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxIntError, self.residue_fns.renumber, 
res_id=':1', new_number=data[1])
+            self.assertRaises(RelaxIntError, self.residue_fns.number, 
res_id=':1', number=data[1])




Related Messages


Powered by MHonArc, Updated Sun May 04 15:40:23 2008