Trees | Indices | Help |
|
---|
|
1 ############################################################################### 2 # # 3 # Copyright (C) 2008-2014 Edward d'Auvergne # 4 # Copyright (C) 2014 Troels E. Linnet # 5 # # 6 # This file is part of the program relax (http://www.nmr-relax.com). # 7 # # 8 # This program is free software: you can redistribute it and/or modify # 9 # it under the terms of the GNU General Public License as published by # 10 # the Free Software Foundation, either version 3 of the License, or # 11 # (at your option) any later version. # 12 # # 13 # This program is distributed in the hope that it will be useful, # 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 16 # GNU General Public License for more details. # 17 # # 18 # You should have received a copy of the GNU General Public License # 19 # along with this program. If not, see <http://www.gnu.org/licenses/>. # 20 # # 21 ############################################################################### 22 23 # Python module imports. 24 from os import sep 25 26 # relax module imports. 27 from pipe_control import state 28 from specific_analyses.relax_disp.checks import get_times 29 from test_suite.unit_tests.base_classes import UnitTestCase 30 from status import Status; status = Status() 31 3234 """Unit tests for the functions of the specific_analyses.relax_disp.checks module.""" 35 365238 """Unit test of the get_times() function. 39 40 This uses the data of the saved state attached to U{bug #21665<https://web.archive.org/web/https://gna.org/bugs/?21665>}. 41 """ 42 43 # Load the state. 44 statefile = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'bug_21665.bz2' 45 state.load_state(statefile, force=True) 46 47 # Check the return of get_times(). 48 times = get_times() 49 for exp_type in times: 50 print(times[exp_type]) 51 self.assertEqual(len(times[exp_type]), 2)
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Oct 28 15:38:29 2016 | http://epydoc.sourceforge.net |