mailr26370 - in /branches/space_mapping_refactor: ./ 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:55:
Author: bugman
Date: Thu Oct 23 11:55:19 2014
New Revision: 26370

URL: http://svn.gna.org/viewcvs/relax?rev=26370&view=rev
Log:
Merged revisions 26366 via svnmerge from 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk

........
  r26366 | bugman | 2014-10-23 11:43:27 +0200 (Thu, 23 Oct 2014) | 6 lines
  
  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:
    branches/space_mapping_refactor/   (props changed)
    branches/space_mapping_refactor/test_suite/system_tests/structure.py

Propchange: branches/space_mapping_refactor/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Thu Oct 23 11:55:19 2014
@@ -1 +1 @@
-/trunk:1-26362
+/trunk:1-26362,26366

Modified: branches/space_mapping_refactor/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/space_mapping_refactor/test_suite/system_tests/structure.py?rev=26370&r1=26369&r2=26370&view=diff
==============================================================================
--- branches/space_mapping_refactor/test_suite/system_tests/structure.py      
  (original)
+++ branches/space_mapping_refactor/test_suite/system_tests/structure.py      
  Thu Oct 23 11:55:19 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