mailr26366 - /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 October 23, 2014 - 11:43:
Author: bugman
Date: Thu Oct 23 11:43:27 2014
New Revision: 26366

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

This is to catch bug #22860 (https://gna.org/bugs/?22860), the failure of the 
structure.com user
function after calling structure.delete.


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=26366&r1=26365&r2=26366&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Thu Oct 23 11:43:27 2014
@@ -363,6 +363,20 @@
 
         # Superimpose.
         self.interpreter.structure.superimpose(method='fit to first', 
centre_type='CoM')
+
+
+    def test_bug_22860_CoM_after_deletion(self):
+        """Catch U{bug #22860<https://gna.org/bugs/?22860>}, the failure of 
the structure.com user function after calling structure.delete."""
+
+        # Path of the structure file.
+        path = status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'frame_order'+sep+'cam'
+
+        # Load a random structure, then delete it.
+        self.interpreter.structure.read_pdb('1J7P_1st_NH.pdb', dir=path, 
set_mol_name='C-dom', set_model_num=1)
+        self.interpreter.structure.delete()
+
+        # CoM.
+        self.interpreter.structure.com()
 
 
     def test_collapse_ensemble(self):




Related Messages


Powered by MHonArc, Updated Thu Oct 23 12:00:03 2014