mailr18482 - /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 February 18, 2013 - 17:59:
Author: bugman
Date: Mon Feb 18 17:59:31 2013
New Revision: 18482

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


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=18482&r1=18481&r2=18482&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py (original)
+++ trunk/test_suite/system_tests/structure.py Mon Feb 18 17:59:31 2013
@@ -891,6 +891,11 @@
         self.interpreter.structure.add_model()
         self.interpreter.structure.add_model()
 
+        # Check that the models were correctly created.
+        self.assert_(hasattr(cdp, 'structure'))
+        self.assert_(hasattr(cdp.structure, 'structural_data'))
+        self.assertEqual(len(cdp.structure.structural_data), 3)
+
         # Create a structure with some atoms.
         self.interpreter.structure.add_atom(atom_name='A', res_name='UNK', 
res_num=1, pos=[[1., 0., 0.], [0., 0., 0.], [0., 0., 1.]], element='S')
         self.interpreter.structure.add_atom(atom_name='A', res_name='UNK', 
res_num=2, pos=[[1., 2., 0.], [0., 2., 0.], [0., 2., 1.]], element='S')
@@ -900,7 +905,6 @@
         self.interpreter.structure.rmsd()
 
         # Checks.
-        self.assert_(hasattr(cdp, 'structure'))
         self.assert_(hasattr(cdp.structure, 'rmsd'))
         self.assertEqual(cdp.structure.rmsd, 3*sqrt(2))
 




Related Messages


Powered by MHonArc, Updated Mon Feb 18 18:20:02 2013