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