mailr18507 - /trunk/test_suite/unit_tests/_generic_fns/_structure/test_pdb_read.py


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

Header


Content

Posted by edward on February 19, 2013 - 22:13:
Author: bugman
Date: Tue Feb 19 22:13:53 2013
New Revision: 18507

URL: http://svn.gna.org/viewcvs/relax?rev=18507&view=rev
Log:
Added some more unit tests for the generic_fns.structure.pdb_read module.

These tests are not yet complete, as it is unknown what these unimplemented 
functions will return.


Modified:
    trunk/test_suite/unit_tests/_generic_fns/_structure/test_pdb_read.py

Modified: trunk/test_suite/unit_tests/_generic_fns/_structure/test_pdb_read.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_generic_fns/_structure/test_pdb_read.py?rev=18507&r1=18506&r2=18507&view=diff
==============================================================================
--- trunk/test_suite/unit_tests/_generic_fns/_structure/test_pdb_read.py 
(original)
+++ trunk/test_suite/unit_tests/_generic_fns/_structure/test_pdb_read.py Tue 
Feb 19 22:13:53 2013
@@ -49,3 +49,23 @@
         self.assertEqual(record[12], 0.0)
         self.assertEqual(record[13], 'C')
         self.assertEqual(record[14], None)
+
+
+    def test_helix(self):
+        """Test the pdb_read.helix() function."""
+
+        # Parse a PDB record (from the 1UBQ PDB file).
+        record = pdb_read.helix('HELIX    1  H1 ILE A   23  GLU A   34  1    
                              12    ')
+
+        # Test the elements.
+        self.assertEqual(record[0], 'HELIX')
+
+
+    def test_sheet(self):
+        """Test the pdb_read.sheet() function."""
+
+        # Parse a PDB record (from the 1UBQ PDB file).
+        record = pdb_read.sheet('SHEET    1 BET 5 GLY A  10  VAL A  17  0    
                                    ')
+
+        # Test the elements.
+        self.assertEqual(record[0], 'SHEET')




Related Messages


Powered by MHonArc, Updated Tue Feb 19 23:00:02 2013