mailr7531 - /1.3/test_suite/system_tests/model_free.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 06, 2008 - 22:18:
Author: bugman
Date: Mon Oct  6 22:18:03 2008
New Revision: 7531

URL: http://svn.gna.org/viewcvs/relax?rev=7531&view=rev
Log:
Added some checks to the test_omp_analysis() system test.


Modified:
    1.3/test_suite/system_tests/model_free.py

Modified: 1.3/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/model_free.py?rev=7531&r1=7530&r2=7531&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/model_free.py (original)
+++ 1.3/test_suite/system_tests/model_free.py Mon Oct  6 22:18:03 2008
@@ -162,6 +162,15 @@
 
         # Execute the script.
         self.relax.interpreter.run(script_file=sys.path[-1] + 
'/test_suite/system_tests/scripts/omp_model_free.py')
+
+        # Alias the current data pipe.
+        cdp = pipes.get_pipe()
+
+        # Some checks.
+        self.assertEqual(cdp.mol[0].res[0].spin[0].select_sim, 
numpy.array([1, 0, 1], numpy.int))
+        self.assertEqual(cdp.mol[0].res[1].spin[0].select_sim, 
numpy.array([1, 1, 1], numpy.int))
+        self.assertEqual(cdp.mol[0].res[2].spin[0].select_sim, 
numpy.array([1, 1, 1], numpy.int))
+        self.assert_(not hasattr(cdp.mol[0].res[3].spin[0], 'select_sim'))
 
 
     def test_opendx_s2_te_rex(self):




Related Messages


Powered by MHonArc, Updated Mon Oct 06 22:40:05 2008