mailr4566 - /branches/N_state_model/test_suite/unit_tests/n_state_model_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 09, 2008 - 17:45:
Author: bugman
Date: Wed Jan  9 17:45:04 2008
New Revision: 4566

URL: http://svn.gna.org/viewcvs/relax?rev=4566&view=rev
Log:
Wrote the empty N-state model base class for the unit tests.


Added:
    branches/N_state_model/test_suite/unit_tests/n_state_model_testing_base.py

Added: 
branches/N_state_model/test_suite/unit_tests/n_state_model_testing_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/unit_tests/n_state_model_testing_base.py?rev=4566&view=auto
==============================================================================
--- 
branches/N_state_model/test_suite/unit_tests/n_state_model_testing_base.py 
(added)
+++ 
branches/N_state_model/test_suite/unit_tests/n_state_model_testing_base.py 
Wed Jan  9 17:45:04 2008
@@ -1,0 +1,45 @@
+###############################################################################
+#                                                                            
 #
+# 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 N_state_model_base_class:
+    """Base class for the tests of the N-state model modules.
+
+    This includes both the 'prompt.n_state_model' and 
'specific_fns.n_state_model' modules.  This
+    base class also contains many shared unit tests.
+    """
+
+
+    def setUp(self):
+        """Set up for all the N-state model unit tests."""
+
+        # 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 Wed Jan 09 18:00:12 2008