mailr4819 - /1.3/test_suite/unit_tests/_generic_fns/test_value.py


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

Header


Content

Posted by edward on January 17, 2008 - 15:34:
Author: bugman
Date: Thu Jan 17 15:34:31 2008
New Revision: 4819

URL: http://svn.gna.org/viewcvs/relax?rev=4819&view=rev
Log:
More fixes for the unit tests of the generic_fns.value.partition_params() 
function.

The current data pipe needed to be changed back to a model-free pipe.


Modified:
    1.3/test_suite/unit_tests/_generic_fns/test_value.py

Modified: 1.3/test_suite/unit_tests/_generic_fns/test_value.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/test_value.py?rev=4819&r1=4818&r2=4819&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_generic_fns/test_value.py (original)
+++ 1.3/test_suite/unit_tests/_generic_fns/test_value.py Thu Jan 17 15:34:31 
2008
@@ -24,6 +24,7 @@
 from unittest import TestCase
 
 # relax module imports.
+from data import Data as relax_data_store
 from generic_fns import value
 from test_suite.unit_tests.value_testing_base import Value_base_class
 
@@ -38,6 +39,9 @@
 
     def test_partition_params1(self):
         """First test of the generic_fns.value.partition_params() 
function."""
+
+        # Set the current data pipe to 'mf'.
+        relax_data_store.current_pipe = 'mf'
 
         # The parameters and values.
         param = ['S2']
@@ -56,6 +60,9 @@
     def test_partition_params2(self):
         """Second test of the generic_fns.value.partition_params() 
function."""
 
+        # Set the current data pipe to 'mf'.
+        relax_data_store.current_pipe = 'mf'
+
         # The parameters and values.
         param = ['Dx']
         val = [1e7]
@@ -72,6 +79,9 @@
 
     def test_partition_params3(self):
         """Third test of the generic_fns.value.partition_params() 
function."""
+
+        # Set the current data pipe to 'mf'.
+        relax_data_store.current_pipe = 'mf'
 
         # The parameters and values.
         param = ['Dx', 'S2']
@@ -90,6 +100,9 @@
     def test_partition_params4(self):
         """Forth test of the generic_fns.value.partition_params() 
function."""
 
+        # Set the current data pipe to 'mf'.
+        relax_data_store.current_pipe = 'mf'
+
         # The parameters and values.
         param = ['Dx', 'S2', 'CSA']
         val = [1e7, 0.8, -160e-6]
@@ -106,6 +119,9 @@
 
     def test_partition_params5(self):
         """Fifth test of the generic_fns.value.partition_params() 
function."""
+
+        # Set the current data pipe to 'mf'.
+        relax_data_store.current_pipe = 'mf'
 
         # The parameters and values.
         param = ['Dpar', 'S2', 'Dper', 'CSA', 'theta']
@@ -124,6 +140,9 @@
     def test_partition_params6(self):
         """Sixth test of the generic_fns.value.partition_params() 
function."""
 
+        # Set the current data pipe to 'mf'.
+        relax_data_store.current_pipe = 'mf'
+
         # The parameters and values.
         param = []
         val = []




Related Messages


Powered by MHonArc, Updated Thu Jan 17 15:40:20 2008