Author: bugman Date: Sun Jan 13 12:31:20 2008 New Revision: 4667 URL: http://svn.gna.org/viewcvs/relax?rev=4667&view=rev Log: Added the framework for unit tests of the model-free user function args. Added: 1.3/test_suite/unit_tests/_prompt/test_model_free.py 1.3/test_suite/unit_tests/model_free_testing_base.py Added: 1.3/test_suite/unit_tests/_prompt/test_model_free.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_model_free.py?rev=4667&view=auto ============================================================================== --- 1.3/test_suite/unit_tests/_prompt/test_model_free.py (added) +++ 1.3/test_suite/unit_tests/_prompt/test_model_free.py Sun Jan 13 12:31:20 2008 @@ -1,0 +1,42 @@ +############################################################################### +# # +# 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 +from prompt.model_free import Model_free +from test_suite.unit_tests.model_free_testing_base import Model_free_base_class + +# Unit test imports. +from data_types import DATA_TYPES +import fake_relax + + +class Test_model_free(Model_free_base_class, TestCase): + """Unit tests for the functions of the 'prompt.model_free' module.""" + + # Instantiate the user function class. + model_free_fns = Model_free(fake_relax.fake_instance()) + + Added: 1.3/test_suite/unit_tests/model_free_testing_base.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/model_free_testing_base.py?rev=4667&view=auto ============================================================================== --- 1.3/test_suite/unit_tests/model_free_testing_base.py (added) +++ 1.3/test_suite/unit_tests/model_free_testing_base.py Sun Jan 13 12:31:20 2008 @@ -1,0 +1,32 @@ +############################################################################### +# # +# 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 Model_free_base_class: + """Base class for tests of both the 'prompt.model_free' and 'specific_fns.model_free' modules. + + This base class also contains many shared unit tests. + """