mailr23156 - in /trunk/test_suite/verification_tests: __init__.py status_object.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on May 12, 2014 - 21:29:
Author: bugman
Date: Mon May 12 21:29:47 2014
New Revision: 23156

URL: http://svn.gna.org/viewcvs/relax?rev=23156&view=rev
Log:
Created the Status_object.test_install_path system verification test.

This is to catch bug #22037 (http://gna.org/bugs/?22037), the failure to load 
graphics in the GUI
due to the relax installation path not being set up correctly.


Added:
    trunk/test_suite/verification_tests/status_object.py
Modified:
    trunk/test_suite/verification_tests/__init__.py

Modified: trunk/test_suite/verification_tests/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/verification_tests/__init__.py?rev=23156&r1=23155&r2=23156&view=diff
==============================================================================
--- trunk/test_suite/verification_tests/__init__.py     (original)
+++ trunk/test_suite/verification_tests/__init__.py     Mon May 12 21:29:47 
2014
@@ -35,10 +35,12 @@
 # relax software verification test module imports.
 from test_suite.relax_test_loader import RelaxTestLoader as TestLoader
 from test_suite.verification_tests.library import Library
+from test_suite.verification_tests.status_object import Status_object
 
 
 __all__ = [
-    ''
+    'library',
+    'status_object'
 ]
 
 
@@ -92,6 +94,7 @@
         # All tests.
         if not tests:
             suite_array.append(TestLoader().loadTestsFromTestCase(Library))
+            
suite_array.append(TestLoader().loadTestsFromTestCase(Status_object))
 
         # Group all tests together.
         full_suite = TestSuite(suite_array)

Added: trunk/test_suite/verification_tests/status_object.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/verification_tests/status_object.py?rev=23156&view=auto
==============================================================================
--- trunk/test_suite/verification_tests/status_object.py        (added)
+++ trunk/test_suite/verification_tests/status_object.py        Mon May 12 
21:29:47 2014
@@ -0,0 +1,43 @@
+###############################################################################
+#                                                                            
 #
+# Copyright (C) 2014 Edward d'Auvergne                                       
 #
+#                                                                            
 #
+# This file is part of the program relax (http://www.nmr-relax.com).         
 #
+#                                                                            
 #
+# This program is free software: you can redistribute it and/or modify       
 #
+# it under the terms of the GNU General Public License as published by       
 #
+# the Free Software Foundation, either version 3 of the License, or          
 #
+# (at your option) any later version.                                        
 #
+#                                                                            
 #
+# This program is distributed in the hope that it will be useful,            
 #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of             
 #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              
 #
+# GNU General Public License for more details.                               
 #
+#                                                                            
 #
+# You should have received a copy of the GNU General Public License          
 #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.      
 #
+#                                                                            
 #
+###############################################################################
+
+# Module docstring.
+"""Verification tests for the status object."""
+
+# Python module imports.
+from unittest import TestCase
+
+# relax module imports.
+from status import Status; status = Status()
+
+
+class Status_object(TestCase):
+    """Test the relax status object."""
+
+    def test_install_path(self):
+        """Check that the relax installation path is set.
+
+        This is to catch bug #22037 U{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.
+        """
+
+        # The installation path must be set.
+        self.assertNotEqual(status.install_path, None)
+        self.assertNotEqual(status.install_path, "")




Related Messages


Powered by MHonArc, Updated Mon May 12 21:40:02 2014