mailr23328 - /trunk/test_suite/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 May 22, 2014 - 14:30:
Author: bugman
Date: Thu May 22 14:30:58 2014
New Revision: 23328

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

This is to catch bug #22069 (https://gna.org/bugs/index.php?22069), the 
failure of the
structure.delete user function with "AttributeError: Internal instance has no 
attribute 'helices'".


Modified:
    trunk/test_suite/system_tests/structure.py

Modified: trunk/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/structure.py?rev=23328&r1=23327&r2=23328&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Thu May 22 14:30:58 2014
@@ -194,6 +194,19 @@
         lines = file.readlines()
         for i in range(len(lines)):
             self.assertEqual(contents[i], lines[i])
+
+
+    def test_bug_22069_structure_delete_helix_attribute(self):
+        """Catch U{bug #22069<https://gna.org/bugs/?22069>}, the failure of 
the structure.delete user function with helix attribute errors."""
+
+        # Path of the structure file.
+        path = status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'frame_order'+sep+'cam'
+
+        # Load the structure.
+        self.interpreter.structure.read_pdb('1J7P_1st_NH_rot.pdb', dir=path)
+
+        # Delete the calciums.
+        self.interpreter.structure.delete(atom_id='@CA')
 
 
     def test_delete_empty(self):




Related Messages


Powered by MHonArc, Updated Thu May 22 14:40:02 2014