Package test_suite :: Package verification_tests :: Module status_object
[hide private]
[frames] | no frames]

Source Code for Module test_suite.verification_tests.status_object

 1  ############################################################################### 
 2  #                                                                             # 
 3  # Copyright (C) 2014 Edward d'Auvergne                                        # 
 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  # Module docstring. 
23  """Verification tests for the status object.""" 
24   
25  # Python module imports. 
26  from unittest import TestCase 
27   
28  # relax module imports. 
29  from status import Status; status = Status() 
30   
31   
32 -class Status_object(TestCase):
33 """Test the relax status object.""" 34
35 - def test_install_path(self):
36 """Check that the relax installation path is set. 37 38 This is to catch bug #22037 U{https://web.archive.org/web/https://gna.org/bugs/index.php?22037}, the failure to load graphics in the GUI due to the relax installation path not being set up correctly. 39 """ 40 41 # The installation path must be set. 42 self.assertNotEqual(status.install_path, None) 43 self.assertNotEqual(status.install_path, "")
44