mailr23337 - /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 - 16:09:
Author: bugman
Date: Thu May 22 16:09:50 2014
New Revision: 23337

URL: http://svn.gna.org/viewcvs/relax?rev=23337&view=rev
Log:
Added some checks to the 
Structure.test_bug_22070_structure_superimpose_after_deletion system test.

These tests reveal the real problem - that the atoms of the second model have 
not been removed by
the structure.delete user function.


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=23337&r1=23336&r2=23337&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Thu May 22 16:09:50 2014
@@ -221,6 +221,11 @@
 
         # Delete the calciums.
         self.interpreter.structure.delete(atom_id='@CA')
+
+        # Check the deleted atoms of both models (the last atoms should now 
be the last ATOM record proton and not the HETATOM CA).
+        for i in range(2):
+            print("Checking the last atom of model %s." % i)
+            
self.assertEqual(cdp.structure.structural_data[i].mol[0].atom_name[-1], 'H')
 
         # Superimpose.
         self.interpreter.structure.superimpose(method='fit to first', 
centre_type='CoM')




Related Messages


Powered by MHonArc, Updated Thu May 22 17:00:02 2014