mailr4403 - /1.3/test_suite/unit_tests/minimisation_testing_base.py


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

Header


Content

Posted by edward on January 07, 2008 - 11:05:
Author: bugman
Date: Mon Jan  7 11:05:40 2008
New Revision: 4403

URL: http://svn.gna.org/viewcvs/relax?rev=4403&view=rev
Log:
Created the base class for the unit tests of the prompt and generic_fns 
minimisation functions.


Added:
    1.3/test_suite/unit_tests/minimisation_testing_base.py

Added: 1.3/test_suite/unit_tests/minimisation_testing_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/minimisation_testing_base.py?rev=4403&view=auto
==============================================================================
--- 1.3/test_suite/unit_tests/minimisation_testing_base.py (added)
+++ 1.3/test_suite/unit_tests/minimisation_testing_base.py Mon Jan  7 
11:05:40 2008
@@ -1,0 +1,48 @@
+###############################################################################
+#                                                                            
 #
+# Copyright (C) 2008 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 data import Data as relax_data_store
+
+
+class Minimisation_base_class:
+    """Base class for the tests of the minimisation modules.
+    
+    This includes both the 'prompt.minimisation' and 'generic_fns.minimise' 
modules.
+    The base class also contains many shared unit tests.
+    """
+
+
+    def setUp(self):
+        """Set up for all the minimisation unit tests."""
+
+        # Reset the relax data storage object.
+        relax_data_store.__reset__()
+
+        # Add a data pipe to the data store.
+        relax_data_store.add(pipe_name='orig', pipe_type='mf')
+
+
+    def tearDown(self):
+        """Reset the relax data storage object."""
+
+        relax_data_store.__reset__()




Related Messages


Powered by MHonArc, Updated Mon Jan 07 11:20:05 2008