mailr22307 - /trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py


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

Header


Content

Posted by tlinnet on February 25, 2014 - 15:05:
Author: tlinnet
Date: Tue Feb 25 15:04:59 2014
New Revision: 22307

URL: http://svn.gna.org/viewcvs/relax?rev=22307&view=rev
Log:
Added test for the return of get_times().

Regarding bug #21665, (https://gna.org/bugs/?21665) - Running a CPMG analysis 
with two fields at two delay times.

Modified:
    
trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py

Modified: 
trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py?rev=22307&r1=22306&r2=22307&view=diff
==============================================================================
--- 
trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py 
(original)
+++ 
trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py 
Tue Feb 25 15:04:59 2014
@@ -25,6 +25,7 @@
 # relax module imports.
 from data_store import Relax_data_store; ds = Relax_data_store()
 from pipe_control import state
+from specific_analyses.relax_disp.checks import get_times
 from specific_analyses.relax_disp.disp_data import count_relax_times, 
get_curve_type, has_exponential_exp_type, loop_exp_frq, loop_exp_frq_offset, 
loop_exp_frq_offset_point, loop_exp_frq_offset_point_time, loop_time
 from status import Status; status = Status()
 from test_suite.unit_tests.base_classes import UnitTestCase
@@ -80,6 +81,12 @@
                 self.assertEqual(frq, data[1][1])
             # Test the time count
             self.assertEqual(count, 1)
+
+        # Check the return of get_times().
+        times = get_times()
+        for exp_type in times:
+            print(times[exp_type])
+            self.assertEqual(len(times[exp_type]), 2)
 
         # Check the return of has_exponential_exp_type.
         exponential_exp_type = has_exponential_exp_type()




Related Messages


Powered by MHonArc, Updated Tue Feb 25 15:20:02 2014