mailr9037 - /1.3/test_suite/system_tests/noe_restraints.py


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

Header


Content

Posted by edward on May 06, 2009 - 10:55:
Author: bugman
Date: Wed May  6 10:55:04 2009
New Revision: 9037

URL: http://svn.gna.org/viewcvs/relax?rev=9037&view=rev
Log:
Added a system test for the reading of the Xplor pseudoatom data.


Modified:
    1.3/test_suite/system_tests/noe_restraints.py

Modified: 1.3/test_suite/system_tests/noe_restraints.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/noe_restraints.py?rev=9037&r1=9036&r2=9037&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/noe_restraints.py (original)
+++ 1.3/test_suite/system_tests/noe_restraints.py Wed May  6 10:55:04 2009
@@ -159,6 +159,32 @@
             self.assertEqual(cdp.noe_restraints[i][3], restraints[i][3])
 
 
+    def test_read_xplor_methyl(self):
+        """Test the reading of an Xplor NOE restraints file fragment with a 
methyl group."""
+
+        # Execute the script.
+        self.relax.interpreter.run(script_file=sys.path[-1] + 
'/test_suite/system_tests/scripts/phthalic_acid_noes.py')
+
+        # The restraint data.
+        restraints = [
+            ['@H28', '@H9',  3.0, 5.0],
+            ['@H28', '@Q9',  3.0, 6.0]
+        ]
+
+        # Alias the current data pipe.
+        cdp = pipes.get_pipe()
+
+        # Test that the restraints are properly set.
+        for i in range(len(restraints)):
+            # Atom ids.
+            self.assertEqual(cdp.noe_restraints[i][0], restraints[i][0])
+            self.assertEqual(cdp.noe_restraints[i][1], restraints[i][1])
+
+            # Lower and upper bound.
+            self.assertEqual(cdp.noe_restraints[i][2], restraints[i][2])
+            self.assertEqual(cdp.noe_restraints[i][3], restraints[i][3])
+
+
     def test_read_xplor_rna(self):
         """Test the reading of RNA H-bond restraints in Xplor format."""
 




Related Messages


Powered by MHonArc, Updated Wed May 06 14:00:03 2009