Author: tlinnet
Date: Thu Dec  5 17:24:16 2013
New Revision: 21794

URL: http://svn.gna.org/viewcvs/relax?rev=21794&view=rev
Log:
System test for sequence read expanded to include assertions of correct data.

Work in progress for Support Request #3044, 
(https://gna.org/support/index.php?3044) - Load spins from SPARKY list.

Modified:
    trunk/test_suite/system_tests/sequence.py

Modified: trunk/test_suite/system_tests/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/sequence.py?rev=21794&r1=21793&r2=21794&view=diff
==============================================================================
--- trunk/test_suite/system_tests/sequence.py (original)
+++ trunk/test_suite/system_tests/sequence.py Thu Dec  5 17:24:16 2013
@@ -267,7 +267,18 @@
 
         # Read the sequence.
         self.interpreter.sequence.read(file='test_seq', 
dir=status.install_path + sep+'test_suite'+sep+'shared_data', res_num_col=1, 
res_name_col=2)
-
+        
+        # Test some of the sequence.
+        self.assertEqual(len(cdp.mol), 1)
+        self.assertEqual(cdp.mol[0].name, None)
+        self.assertEqual(len(cdp.mol[0].res), 5)
+
+        # 1st residue.
+        self.assertEqual(cdp.mol[0].res[0].num, -2)
+        self.assertEqual(cdp.mol[0].res[0].name, 'Gly')
+        self.assertEqual(len(cdp.mol[0].res[0].spin), 1)
+        self.assertEqual(cdp.mol[0].res[0].spin[0].num, None)
+        self.assertEqual(cdp.mol[0].res[0].spin[0].name, None)
 
     def test_sequence_copy(self):
         """Test the sequence.copy user function."""


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to