mailr19652 - /trunk/test_suite/system_tests/value.py


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

Header


Content

Posted by edward on May 03, 2013 - 19:54:
Author: bugman
Date: Fri May  3 19:54:55 2013
New Revision: 19652

URL: http://svn.gna.org/viewcvs/relax?rev=19652&view=rev
Log:
The Value.test_value_copy system test now checks all of the values and errors.


Modified:
    trunk/test_suite/system_tests/value.py

Modified: trunk/test_suite/system_tests/value.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/value.py?rev=19652&r1=19651&r2=19652&view=diff
==============================================================================
--- trunk/test_suite/system_tests/value.py (original)
+++ trunk/test_suite/system_tests/value.py Fri May  3 19:54:55 2013
@@ -57,3 +57,18 @@
         # Copy the sequence data and value.
         self.interpreter.sequence.copy(pipe_from='orig', pipe_to='new')
         self.interpreter.value.copy(pipe_from='orig', pipe_to='new', 
param='s2')
+
+        # Loop over both the new and old pipes to check the data.
+        for pipe in ['orig', 'new']:
+            # Printout.
+            print("Checking the values of the '%s' data pipe." % pipe)
+
+            # Check the values.
+            self.assertEqual(ds[pipe].mol[0].res[0].spin[0].s2, 0.8)
+            self.assertEqual(ds[pipe].mol[0].res[1].spin[0].s2, 0.8)
+            self.assert_(not hasattr(ds[pipe].mol[0].res[2].spin[0], 's2'))
+
+            # Check the errors.
+            self.assertEqual(ds[pipe].mol[0].res[0].spin[0].s2_err, 0.1)
+            self.assertEqual(ds[pipe].mol[0].res[1].spin[0].s2_err, 0.2)
+            self.assertEqual(ds[pipe].mol[0].res[2].spin[0].s2_err, 0.3)




Related Messages


Powered by MHonArc, Updated Fri May 03 20:20:04 2013