diff options
author | makkalot <makkalot@gmail.com> | 2008-06-01 12:16:57 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-06-01 12:16:57 +0300 |
commit | 12706048cee60b7d39c03104a8b288e5fa6368ee (patch) | |
tree | dea4e97e97553e88adab65cbc432b17c2b7c57e4 /func | |
parent | 77f20e5f743535c8935eeb2c2d7a750700d108d9 (diff) | |
download | third_party-func-12706048cee60b7d39c03104a8b288e5fa6368ee.tar.gz third_party-func-12706048cee60b7d39c03104a8b288e5fa6368ee.tar.xz third_party-func-12706048cee60b7d39c03104a8b288e5fa6368ee.zip |
minor changes in arg module, discovered in unittests ,testing is cool :)
Diffstat (limited to 'func')
-rw-r--r-- | func/minion/modules/func_arg.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/func/minion/modules/func_arg.py b/func/minion/modules/func_arg.py index 4d87e06..95cc000 100644 --- a/func/minion/modules/func_arg.py +++ b/func/minion/modules/func_arg.py @@ -13,7 +13,7 @@ class ArgCompatibility(object): """ That class is going to test if the module that was created by module - writer if he/she obeys to the rules we put before + writer if he/she obeys to the rules we put here """ #these are the common options can be used with all types @@ -36,19 +36,19 @@ class ArgCompatibility(object): def __init__(self,get_args_result): """ - The constructor initilized by the get_method_args() + The constructor initilized by the get_method_args()(the dict to test) @param : get_args_result : The dict with all method related info """ self.__args_to_check = get_args_result #what options does each of the basic_types have : self.__valid_args={ - 'int':('range','min','max'), - 'string':('options','min_length','max_length','validator'), + 'int':('range','min','max',), + 'string':('options','min_length','max_length','validator',), 'boolean':(), 'float':(), - 'hash':('validator'), - 'iterable':('validator'), + 'hash':('validator',), + 'iterable':('validator',), } @@ -123,7 +123,7 @@ class ArgCompatibility(object): class IncompatibleTypesException(Exception): """ Raised when we assign some values that breaksour rules - @see ArgCompatibility class for allowe situations + @see ArgCompatibility class for allowed situations """ def __init__(self, value=None): Exception.__init__(self) |