mailr4513 - /branches/consistency_tests_1.3/test_suite/unit_tests/value_testing_base.py


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

Header


Content

Posted by sebastien . morin . 1 on January 08, 2008 - 23:11:
Author: semor
Date: Tue Jan  8 23:11:06 2008
New Revision: 4513

URL: http://svn.gna.org/viewcvs/relax?rev=4513&view=rev
Log:
Adapted, for the consistency_tests code, 3 more RSDM unit tests for the 
setting of parameters.


Modified:
    branches/consistency_tests_1.3/test_suite/unit_tests/value_testing_base.py

Modified: 
branches/consistency_tests_1.3/test_suite/unit_tests/value_testing_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.3/test_suite/unit_tests/value_testing_base.py?rev=4513&r1=4512&r2=4513&view=diff
==============================================================================
--- 
branches/consistency_tests_1.3/test_suite/unit_tests/value_testing_base.py 
(original)
+++ 
branches/consistency_tests_1.3/test_suite/unit_tests/value_testing_base.py 
Tue Jan  8 23:11:06 2008
@@ -310,6 +310,54 @@
         self.assertEqual(cdp.mol[0].res[1].spin[0].f_r2, 1.9e-10)
 
 
+    def test_set_ct_defaults_j0(self):
+        """Set the consistency testing parameter J(0) to the default value 
(there is none!).
+
+        The functions tested are both generic_fns.value.set() and 
prompt.value.set().
+        """
+
+        # Set the current data pipe to 'ct'.
+        relax_data_store.current_pipe = 'ct'
+
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
+
+        # Set the parameter.
+        self.assertRaises(RelaxParamSetError, self.value_fns.set, param='j0')
+
+
+    def test_set_ct_defaults_f_eta(self):
+        """Set the consistency tests parameter F_eta to the default value 
(there is none!).
+
+        The functions tested are both generic_fns.value.set() and 
prompt.value.set().
+        """
+
+        # Set the current data pipe to 'ct'.
+        relax_data_store.current_pipe = 'ct'
+
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
+
+        # Set the parameter.
+        self.assertRaises(RelaxParamSetError, self.value_fns.set, 
param='f_eta')
+
+
+    def test_set_ct_defaults_f_r2(self):
+        """Set the consistency tests parameter F_R2 to the default value 
(there is none!).
+
+        The functions tested are both generic_fns.value.set() and 
prompt.value.set().
+        """
+
+        # Set the current data pipe to 'ct'.
+        relax_data_store.current_pipe = 'ct'
+
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
+
+        # Set the parameter.
+        self.assertRaises(RelaxParamSetError, self.value_fns.set, 
param='f_r2')
+
+
 
 
     #####################################################




Related Messages


Powered by MHonArc, Updated Tue Jan 08 23:20:09 2008