Author: bugman Date: Thu Oct 23 11:55:12 2014 New Revision: 26369 URL: http://svn.gna.org/viewcvs/relax?rev=26369&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/frame_order_cleanup/ (props changed) branches/frame_order_cleanup/test_suite/system_tests/structure.py Propchange: branches/frame_order_cleanup/ ------------------------------------------------------------------------------ --- svnmerge-integrated (original) +++ svnmerge-integrated Thu Oct 23 11:55:12 2014 @@ -1 +1 @@ -/trunk:1-26362 +/trunk:1-26362,26366 Modified: branches/frame_order_cleanup/test_suite/system_tests/structure.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/test_suite/system_tests/structure.py?rev=26369&r1=26368&r2=26369&view=diff ============================================================================== --- branches/frame_order_cleanup/test_suite/system_tests/structure.py (original) +++ branches/frame_order_cleanup/test_suite/system_tests/structure.py Thu Oct 23 11:55:12 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):