mailr16439 - /branches/uf_redesign/test_suite/unit_tests/_prompt/test_value.py


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

Header


Content

Posted by edward on May 24, 2012 - 12:15:
Author: bugman
Date: Thu May 24 12:15:55 2012
New Revision: 16439

URL: http://svn.gna.org/viewcvs/relax?rev=16439&view=rev
Log:
Fix for the val arg test of the value.set user function.

This argument can now be any value or list of values!


Modified:
    branches/uf_redesign/test_suite/unit_tests/_prompt/test_value.py

Modified: branches/uf_redesign/test_suite/unit_tests/_prompt/test_value.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/test_suite/unit_tests/_prompt/test_value.py?rev=16439&r1=16438&r2=16439&view=diff
==============================================================================
--- branches/uf_redesign/test_suite/unit_tests/_prompt/test_value.py 
(original)
+++ branches/uf_redesign/test_suite/unit_tests/_prompt/test_value.py Thu May 
24 12:15:55 2012
@@ -25,7 +25,7 @@
 
 # relax module imports.
 from prompt.interpreter import Interpreter
-from relax_errors import RelaxError, RelaxNoneNumStrListNumStrError, 
RelaxNoneStrError, RelaxNoneStrListStrError
+from relax_errors import RelaxError, RelaxNoneValListValError, 
RelaxNoneStrError, RelaxNoneStrListStrError
 from test_suite.unit_tests.value_testing_base import Value_base_class
 
 # Unit test imports.
@@ -56,11 +56,11 @@
         # Loop over the data types.
         for data in DATA_TYPES:
             # Catch the None, float, int, str, bin, float list, int list, 
str list, or bin list arguments, and skip them.
-            if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin' or 
data[0] == 'str' or data[0] == 'float' or data[0] == 'int list' or data[0] == 
'bin list' or data[0] == 'str list' or data[0] == 'float list' or data[0] == 
'number list':
+            if data[0] == 'None' or data[0] == 'bin' or data[0] == 'bool' or 
data[0] == 'int' or data[0] == 'str' or data[0] == 'float' or data[0] == 'int 
list' or data[0] == 'bin list' or data[0] == 'bool list' or data[0] == 'str 
list' or data[0] == 'float list' or data[0] == 'number list':
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxNoneNumStrListNumStrError, 
self.value_fns.set, val=data[1], param='csa')
+            self.assertRaises(RelaxNoneValListValError, self.value_fns.set, 
val=data[1], param='csa')
 
 
     def test_set_argfail_param(self):




Related Messages


Powered by MHonArc, Updated Thu May 24 12:20:02 2012