mailr5433 - /1.3/test_suite/system_tests/sequence.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 - 15:42:
Author: bugman
Date: Tue Apr  8 15:17:47 2008
New Revision: 5433

URL: http://svn.gna.org/viewcvs/relax?rev=5433&view=rev
Log:
Fixes and expansion of the system test for the loading of a sequence from a 
PDB file.


Modified:
    1.3/test_suite/system_tests/sequence.py

Modified: 1.3/test_suite/system_tests/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/sequence.py?rev=5433&r1=5432&r2=5433&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/sequence.py (original)
+++ 1.3/test_suite/system_tests/sequence.py Tue Apr  8 15:17:47 2008
@@ -47,8 +47,20 @@
     def test_pdb(self):
         """Load the sequence from a PDB file."""
 
-        # Read the sequence.
-        self.relax.interpreter._Structure.read_pdb(file='test.pdb', 
dir=sys.path[-1] + '/test_suite/system_tests/data', model=1, load_seq=True)
+        # Read the PDB file.
+        self.relax.interpreter._Structure.read_pdb(file='test.pdb', 
dir=sys.path[-1] + '/test_suite/system_tests/data', model=1)
+
+        # Generate the sequence.
+        self.relax.interpreter._Structure.load_spins(spin_id='N')
+
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
+
+        # Test some of the sequence.
+        self.assertEqual(len(cdp.mol), 1)
+        self.assertEqual(len(cdp.mol[0].res), 165)
+        for i in xrange(165):
+            self.assertEqual(len(cdp.mol[0].res[i].spin), 1)
 
 
     def test_read(self):




Related Messages


Powered by MHonArc, Updated Tue Apr 08 16:20:16 2008