Author: bugman Date: Mon Jan 7 17:03:27 2008 New Revision: 4437 URL: http://svn.gna.org/viewcvs/relax?rev=4437&view=rev Log: Created the framework for adding system/functional tests for the N-state model. Added: branches/N_state_model/test_suite/system_tests/n_state_model.py Modified: branches/N_state_model/test_suite/system_tests/__init__.py Modified: branches/N_state_model/test_suite/system_tests/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/system_tests/__init__.py?rev=4437&r1=4436&r2=4437&view=diff ============================================================================== --- branches/N_state_model/test_suite/system_tests/__init__.py (original) +++ branches/N_state_model/test_suite/system_tests/__init__.py Mon Jan 7 17:03:27 2008 @@ -33,6 +33,7 @@ from jw_mapping import Jw from model_free import Mf from model_selection import Modsel +from n_state_model import N_state_model from pipe_create import Pipe_create from relax_fit import Relax_fit from sequence import Sequence @@ -78,6 +79,7 @@ suite_array.append(TestLoader().loadTestsFromTestCase(Relax_fit)) suite_array.append(TestLoader().loadTestsFromTestCase(Sequence)) suite_array.append(TestLoader().loadTestsFromTestCase(Pipe_create)) + suite_array.append(TestLoader().loadTestsFromTestCase(N_state_model)) # Add the relax namespace to each TestCase object. for i in xrange(len(suite_array)): Added: branches/N_state_model/test_suite/system_tests/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/system_tests/n_state_model.py?rev=4437&view=auto ============================================================================== --- branches/N_state_model/test_suite/system_tests/n_state_model.py (added) +++ branches/N_state_model/test_suite/system_tests/n_state_model.py Mon Jan 7 17:03:27 2008 @@ -1,0 +1,39 @@ +############################################################################### +# # +# 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 # +# # +############################################################################### + +# Python module imports. +from unittest import TestCase + +# relax module imports. +from data import Data as relax_data_store + + +class N_state_model(TestCase): + """Class for testing various aspects specific to the N-state model.""" + + def tearDown(self): + """Reset the relax data storage object.""" + + relax_data_store.__reset__() + + +