mailr5864 - /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 20, 2008 - 19:10:
Author: bugman
Date: Sun Apr 20 19:10:33 2008
New Revision: 5864

URL: http://svn.gna.org/viewcvs/relax?rev=5864&view=rev
Log:
Added some checks to the test___molecule_loop() 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=5864&r1=5863&r2=5864&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 Sun 
Apr 20 19:10:33 2008
@@ -71,6 +71,12 @@
         # Test the number of molecules looped over.
         self.assertEqual(mol_count, 1)
 
+        # Test the molecular data.
+        self.assertEqual(mol_name, None)
+        self.assertEqual(mol_type, 'protein')
+        self.assertEqual(len(mol.residues), 12)
+        self.assertEqual(mol.sequence(), ['GLY', 'PRO', 'LEU', 'GLY', 'SER', 
'MET', 'ASP', 'SER', 'PRO', 'PRO', 'GLU', 'GLY'])
+
 
     def test_atom_loop(self):
         """Test the Scientific_data.atom_loop() method."""




Related Messages


Powered by MHonArc, Updated Sun Apr 20 19:20:12 2008