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."""
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits