mailRe: r22307 - /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 Edward d'Auvergne on February 25, 2014 - 15:33:
Hi Troels,

This too should be its own separate unit test.  It is easier to put
everything together but, for debugging, code refactorisation, code
elimination, and other large scale changes, having the test in
isolated units is of huge benefit.

Cheers,

Edward





On 25 February 2014 15:05,  <tlinnet@xxxxxxxxxxxxx> wrote:
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()


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits



Related Messages


Powered by MHonArc, Updated Tue Feb 25 16:00:31 2014