Author: bugman Date: Thu Nov 22 18:20:36 2007 New Revision: 3835 URL: http://svn.gna.org/viewcvs/relax?rev=3835&view=rev Log: Updated the prompt.align_tensor arg unit tests to use the DATA_TYPES structure. Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py?rev=3835&r1=3834&r2=3835&view=diff ============================================================================== --- branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py (original) +++ branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py Thu Nov 22 18:20:36 2007 @@ -25,7 +25,7 @@ import sys # relax module imports. -from data_types import return_data_types +from data_types import DATA_TYPES from prompt.align_tensor import Align_tensor from relax_errors import RelaxBinError, RelaxIntError, RelaxNumTupleError from test_suite.unit_tests.align_tensor_testing_base import Align_tensor_base_class @@ -55,7 +55,7 @@ """Test the proper failure of the align_tensor.init() user function for the params argument.""" # Loop over the data types. - for data in return_data_types(): + for data in DATA_TYPES: # Catch the float list arguments, and skip them. if data[0] == 'float tuple': continue @@ -68,7 +68,7 @@ """The proper failure of the align_tensor.init() user function for the param_types argument.""" # Loop over the data types. - for data in return_data_types(): + for data in DATA_TYPES: # Catch the int and bin arguments, and skip them. if data[0] == 'int' or data[0] == 'bin': continue @@ -81,7 +81,7 @@ """The proper failure of the align_tensor.init() user function for the errors argument.""" # Loop over the data types. - for data in return_data_types(): + for data in DATA_TYPES: # Catch the bin arguments, and skip them. if data[0] == 'bin': continue