mailr25938 - /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 September 22, 2014 - 09:36:
Author: bugman
Date: Mon Sep 22 09:36:45 2014
New Revision: 25938

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

This demonstrates that the internal structural object get_model() method is 
not working as it
should.


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=25938&r1=25937&r2=25938&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Mon Sep 22 09:36:45 2014
@@ -2588,6 +2588,20 @@
                         
self.assertAlmostEqual(cdp.structure.displacements._rotation_axis[models[i]][models[j]][k],
 rot_axis[i][j][k])
 
 
+    def test_get_model(self):
+        """Test the get_model() method of the internal structural object."""
+
+        # Create 2 models.
+        self.interpreter.structure.add_model(model_num=1)
+        self.interpreter.structure.add_model(model_num=2)
+
+        # Get the first model.
+        model = cdp.structure.get_model(1)
+
+        # Check it.
+        self.assertNotEqual(model, None)
+
+
     def test_load_spins_mol_cat(self):
         """Test the loading of spins from different molecules into one 
molecule container."""
 




Related Messages


Powered by MHonArc, Updated Mon Sep 22 09:40:02 2014