mailr5959 - /1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py


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

Header


Content

Posted by edward on April 23, 2008 - 23:18:
Author: bugman
Date: Wed Apr 23 23:18:52 2008
New Revision: 5959

URL: http://svn.gna.org/viewcvs/relax?rev=5959&view=rev
Log:
Fixes for the test_atom_loop_spin_selection1() unit test.


Modified:
    1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py

Modified: 1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py?rev=5959&r1=5958&r2=5959&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py 
(original)
+++ 1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py Wed 
Apr 23 23:18:52 2008
@@ -262,15 +262,15 @@
 
         # Loop over the atoms.
         atom_count = 0
-        for spin_name in self.data.atom_loop(atom_id='@CA', 
spin_name_flag=True):
+        for spin_name in self.data.atom_loop(atom_id='@CA', 
atom_name_flag=True):
             # Test the spin name.
-            self.assertEqual(spin_name, 'CA')
+            self.assertEqual(spin_name[0], 'CA')
 
             # Increment the atom count.
             atom_count = atom_count + 1
 
         # Test the number of atoms looped over.
-        self.assertEqual(atom_count, 11)
+        self.assertEqual(atom_count, 12)
 
 
     def test_atom_loop_spin_selection2(self):




Related Messages


Powered by MHonArc, Updated Wed Apr 23 23:20:13 2008