Author: tlinnet Date: Tue Feb 25 16:39:35 2014 New Revision: 22314 URL: http://svn.gna.org/viewcvs/relax?rev=22314&view=rev Log: Moved the unit test get_curve_type() to its own test. 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=22314&r1=22313&r2=22314&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 16:39:35 2014 @@ -81,6 +81,17 @@ self.assertEqual(frq, data[1][1]) # Test the time count self.assertEqual(count, 1) + + + def test_get_curve_type(self): + """Unit test of the get_curve_type() function. + + This uses the data of the saved state attached to U{bug #21665<https://gna.org/bugs/?21665>}. + """ + + # Load the state. + statefile = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'bug_21665.bz2' + state.load_state(statefile, force=True) # Check the return of get_curve_type function. curve_type = get_curve_type()