mailr6095 - /branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_molecule.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:09:18 2008
New Revision: 6095

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


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

Modified: 
branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_molecule.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_molecule.py?rev=6095&r1=6094&r2=6095&view=diff
==============================================================================
--- 
branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_molecule.py
 (original)
+++ 
branches/mol_res_spin_module_rename/test_suite/unit_tests/_prompt/test_molecule.py
 Sun May  4 15:09:18 2008
@@ -135,8 +135,8 @@
             self.assertRaises(RelaxNoneStrError, self.molecule_fns.display, 
mol_id=data[1])
 
 
-    def test_rename_argfail_mol_id(self):
-        """Test the proper failure of the molecule.rename() user function 
for the mol_id argument."""
+    def test_name_argfail_mol_id(self):
+        """Test the proper failure of the molecule.name() user function for 
the mol_id argument."""
 
         # Loop over the data types.
         for data in DATA_TYPES:
@@ -145,11 +145,11 @@
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxStrError, self.molecule_fns.rename, 
mol_id=data[1])
+            self.assertRaises(RelaxStrError, self.molecule_fns.name, 
mol_id=data[1])
 
 
-    def test_rename_argfail_new_name(self):
-        """Test the proper failure of the molecule.rename() user function 
for the new_name argument."""
+    def test_name_argfail_name(self):
+        """Test the proper failure of the molecule.name() user function for 
the name argument."""
 
         # Loop over the data types.
         for data in DATA_TYPES:
@@ -158,4 +158,4 @@
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxStrError, self.molecule_fns.rename, 
new_name=data[1])
+            self.assertRaises(RelaxStrError, self.molecule_fns.name, 
name=data[1])




Related Messages


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