mailr8619 - /branches/multi_structure/test_suite/system_tests/structure.py


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

Header


Content

Posted by edward on January 22, 2009 - 18:09:
Author: bugman
Date: Thu Jan 22 18:09:11 2009
New Revision: 8619

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

The atom_loop() method is now called to loop over the residues (using '@N').


Modified:
    branches/multi_structure/test_suite/system_tests/structure.py

Modified: branches/multi_structure/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/test_suite/system_tests/structure.py?rev=8619&r1=8618&r2=8619&view=diff
==============================================================================
--- branches/multi_structure/test_suite/system_tests/structure.py (original)
+++ branches/multi_structure/test_suite/system_tests/structure.py Thu Jan 22 
18:09:11 2009
@@ -133,10 +133,16 @@
         self.assertEqual(mol.file_mol_num, 1)
 
         # The real atomic data.
-        res_name = ['GLY', 'PRO', 'LEU', 'GLY', 'SER', 'MET', 'ASP', 'SER', 
'PRO', 'PRO', 'GLU', 'GLY']
-
-        # Check the atomic data.
-        self.assertEqual(mol.sequence(), res_name)
+        res_list = ['GLY', 'PRO', 'LEU', 'GLY', 'SER', 'MET', 'ASP', 'SER', 
'PRO', 'PRO', 'GLU', 'GLY']
+
+        # Loop over the residues.
+        i = 0
+        for res_name in cdp.structure.atom_loop(atom_id='@N', 
res_name_flag=True):
+            # Check the residue data.
+            self.assertEqual(res_name, res_list[i])
+
+            # Increment the residue counter.
+            i = i + 1
 
 
     def test_read_pdb_internal1(self):




Related Messages


Powered by MHonArc, Updated Thu Jan 22 18:40:02 2009