mailr17091 - in /branches/interatomic/test_suite/gui_tests: __init__.py interatomic.py


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

Header


Content

Posted by edward on June 28, 2012 - 14:22:
Author: bugman
Date: Thu Jun 28 14:22:13 2012
New Revision: 17091

URL: http://svn.gna.org/viewcvs/relax?rev=17091&view=rev
Log:
The interatomic test suite scripts are now GUI tests as well.


Added:
    branches/interatomic/test_suite/gui_tests/interatomic.py
Modified:
    branches/interatomic/test_suite/gui_tests/__init__.py

Modified: branches/interatomic/test_suite/gui_tests/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/interatomic/test_suite/gui_tests/__init__.py?rev=17091&r1=17090&r2=17091&view=diff
==============================================================================
--- branches/interatomic/test_suite/gui_tests/__init__.py (original)
+++ branches/interatomic/test_suite/gui_tests/__init__.py Thu Jun 28 14:22:13 
2012
@@ -36,6 +36,7 @@
 from consistency_tests import Ct
 from dead_uf_pages import Dead_uf_pages
 from frame_order import Frame_order
+from interatomic import Interatomic
 from jw_mapping import Jw_mapping
 from model_free import Mf
 from n_state_model import N_state_model
@@ -48,6 +49,7 @@
 
 __all__ = ['bmrb',
            'consistency_tests',
+           'interatomic',
            'jw_mapping',
            'model_free',
            'n_state_model',
@@ -113,6 +115,7 @@
             suite_array.append(TestLoader().loadTestsFromTestCase(Ct))
             
suite_array.append(TestLoader().loadTestsFromTestCase(Dead_uf_pages))
             
suite_array.append(TestLoader().loadTestsFromTestCase(Frame_order))
+            
suite_array.append(TestLoader().loadTestsFromTestCase(Interatomic))
             
suite_array.append(TestLoader().loadTestsFromTestCase(Jw_mapping))
             suite_array.append(TestLoader().loadTestsFromTestCase(Mf))
             
suite_array.append(TestLoader().loadTestsFromTestCase(N_state_model))

Added: branches/interatomic/test_suite/gui_tests/interatomic.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/interatomic/test_suite/gui_tests/interatomic.py?rev=17091&view=auto
==============================================================================
--- branches/interatomic/test_suite/gui_tests/interatomic.py (added)
+++ branches/interatomic/test_suite/gui_tests/interatomic.py Thu Jun 28 
14:22:13 2012
@@ -1,0 +1,44 @@
+###############################################################################
+#                                                                            
 #
+# Copyright (C) 2012 Edward d'Auvergne                                       
 #
+#                                                                            
 #
+# This file is part of the program relax.                                    
 #
+#                                                                            
 #
+# relax 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 2 of the License, or          
 #
+# (at your option) any later version.                                        
 #
+#                                                                            
 #
+# relax 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 relax; if not, write to the Free Software                       
 #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
 #
+#                                                                            
 #
+###############################################################################
+
+# relax module imports.
+from test_suite.gui_tests.base_classes import GuiTestCase
+from test_suite import system_tests
+
+
+class Interatomic(GuiTestCase, system_tests.interatomic.Interatomic):
+    """Class for testing various aspects specific to interatomic data 
containers."""
+
+
+    def __init__(self, methodName=None):
+        """Set up the test case class for the system tests."""
+
+        # Execute the base __init__ methods.
+        super(Interatomic, self).__init__(methodName)
+
+
+    def setUp(self):
+        """Set up the tests by executing all base class setUp() methods."""
+
+        # Call the base class methods.
+        GuiTestCase.setUp(self)
+        system_tests.interatomic.Interatomic.setUp(self)




Related Messages


Powered by MHonArc, Updated Thu Jun 28 14:40:02 2012