mailr22508 - in /trunk/test_suite: shared_data/structures/SpUreE_dimer_H_new.pdb.bz2 system_tests/structure.py


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

Header


Content

Posted by edward on March 19, 2014 - 08:37:
Author: bugman
Date: Wed Mar 19 08:37:35 2014
New Revision: 22508

URL: http://svn.gna.org/viewcvs/relax?rev=22508&view=rev
Log:
Created the Structure.test_bug_21814_pdb_no_80_space_padding system test.

This is for catching bug #21814 (https://gna.org/bugs/?21814), the PDB 
reading failure when the PDB
records are not padded to 80 spaces.  The PDB file used for the test is the 
same file as attached to
the bug report.


Added:
    trunk/test_suite/shared_data/structures/SpUreE_dimer_H_new.pdb.bz2   
(with props)
Modified:
    trunk/test_suite/system_tests/structure.py

Added: trunk/test_suite/shared_data/structures/SpUreE_dimer_H_new.pdb.bz2
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/shared_data/structures/SpUreE_dimer_H_new.pdb.bz2?rev=22508&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/test_suite/shared_data/structures/SpUreE_dimer_H_new.pdb.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: trunk/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/structure.py?rev=22508&r1=22507&r2=22508&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Wed Mar 19 08:37:35 2014
@@ -132,6 +132,16 @@
         lines = file.readlines()
         for i in range(len(lines)):
             self.assertEqual(contents[i], lines[i])
+
+
+    def test_bug_21814_pdb_no_80_space_padding(self):
+        """Catch U{bug #21814<https://gna.org/bugs/?21814>}, the PDB reading 
failure when not padded to 80 spaces."""
+
+        # Path of the structure file.
+        path = status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'structures'
+
+        # Load the file.
+        self.interpreter.structure.read_pdb('SpUreE_dimer_H_new', dir=path)
 
 
     def test_delete_empty(self):




Related Messages


Powered by MHonArc, Updated Wed Mar 19 09:00:02 2014