mailr7902 - /branches/spectral_errors/test_suite/unit_tests/_prompt/test_spectrum.py


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

Header


Content

Posted by edward on October 22, 2008 - 10:44:
Author: bugman
Date: Wed Oct 22 10:44:40 2008
New Revision: 7902

URL: http://svn.gna.org/viewcvs/relax?rev=7902&view=rev
Log:
Created the skeleton module for arg unit tests of the spectrum user function 
class.


Added:
    branches/spectral_errors/test_suite/unit_tests/_prompt/test_spectrum.py

Added: branches/spectral_errors/test_suite/unit_tests/_prompt/test_spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/spectral_errors/test_suite/unit_tests/_prompt/test_spectrum.py?rev=7902&view=auto
==============================================================================
--- branches/spectral_errors/test_suite/unit_tests/_prompt/test_spectrum.py 
(added)
+++ branches/spectral_errors/test_suite/unit_tests/_prompt/test_spectrum.py 
Wed Oct 22 10:44:40 2008
@@ -1,0 +1,40 @@
+###############################################################################
+#                                                                            
 #
+# 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 prompt.spectrum import Spectrum
+from relax_errors import RelaxError, RelaxBoolError, RelaxFloatError, 
RelaxIntError, RelaxNoneIntError, RelaxNoneStrError, RelaxStrError
+
+# Unit test imports.
+from data_types import DATA_TYPES
+import fake_relax
+
+
+class Test_spectrum(TestCase):
+    """Unit tests for the functions of the 'prompt.spectrum' module."""
+
+    # Instantiate the user function class.
+    spectrum_fns = Spectrum(fake_relax.fake_instance())
+




Related Messages


Powered by MHonArc, Updated Wed Oct 22 11:20:03 2008