mailr24977 - /branches/R1_fitting/test_suite/unit_tests/_specific_analyses/_relax_disp/test_variables.py


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

Header


Content

Posted by tlinnet on August 11, 2014 - 09:09:
Author: tlinnet
Date: Mon Aug 11 09:09:18 2014
New Revision: 24977

URL: http://svn.gna.org/viewcvs/relax?rev=24977&view=rev
Log:
Added unit test for the dictionary of model years.

sr #3135(https://gna.org/support/?3135): Optimisation of the R1 relaxation 
rate for the off-resonance R1rho relaxation dispersion models.

Modified:
    
branches/R1_fitting/test_suite/unit_tests/_specific_analyses/_relax_disp/test_variables.py

Modified: 
branches/R1_fitting/test_suite/unit_tests/_specific_analyses/_relax_disp/test_variables.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/R1_fitting/test_suite/unit_tests/_specific_analyses/_relax_disp/test_variables.py?rev=24977&r1=24976&r2=24977&view=diff
==============================================================================
--- 
branches/R1_fitting/test_suite/unit_tests/_specific_analyses/_relax_disp/test_variables.py
  (original)
+++ 
branches/R1_fitting/test_suite/unit_tests/_specific_analyses/_relax_disp/test_variables.py
  Mon Aug 11 09:09:18 2014
@@ -21,7 +21,7 @@
 
 # relax module imports.
 from specific_analyses.relax_disp.variables import MODEL_CR72
-from specific_analyses.relax_disp.variables import MODEL_PARAMS
+from specific_analyses.relax_disp.variables import MODEL_PARAMS, MODEL_YEAR
 from test_suite.unit_tests.base_classes import UnitTestCase
 
 
@@ -38,3 +38,12 @@
         # Test the return.
         self.assertEqual(params_cr72, ['r2', 'pA', 'dw', 'kex'])
 
+
+    def test_MODEL_YEAR(self):
+        """Unit test of the MODEL_YEAR dictionary."""
+
+        # Test model year return from model year dictionary.
+        year_cr72 = MODEL_YEAR[MODEL_CR72]
+
+        # Test the return.
+        self.assertEqual(year_cr72, 1972)




Related Messages


Powered by MHonArc, Updated Mon Aug 11 09:20:05 2014