def setUp(self): self.validator = V.is_list_of(V.is_int)
""" import json from arv.autotest.utils import NoDefault from arv.autotest import validators as V class ConfigurationError(Exception): pass WATCH_NODE_SCHEMA = { "path" : (NoDefault, V.is_dir), "recurse": (True, V.is_bool), "auto_add": (True, V.is_bool), "include": ([], V.is_list_of(V.is_regex)), "exclude": ([], V.is_list_of(V.is_regex)) } watch_node_validator = V.make_validator_from_schema(WATCH_NODE_SCHEMA) THROTTLING_SCHEMA = { "max_events_second" : (1, V.is_int) } throttling_schema_validator = V.make_validator_from_schema(THROTTLING_SCHEMA) PREPROCESSOR_ACTION_SCHEMA = { "regex" : (NoDefault, V.is_regex), "action": (NoDefault, V.is_unicode), "params": (None, None)
import json from arv.autotest.utils import NoDefault from arv.autotest import validators as V class ConfigurationError(Exception): pass WATCH_NODE_SCHEMA = { "path": (NoDefault, V.is_dir), "recurse": (True, V.is_bool), "auto_add": (True, V.is_bool), "include": ([], V.is_list_of(V.is_regex)), "exclude": ([], V.is_list_of(V.is_regex)) } watch_node_validator = V.make_validator_from_schema(WATCH_NODE_SCHEMA) THROTTLING_SCHEMA = { "max_events_second": (1, V.is_int) } throttling_schema_validator = V.make_validator_from_schema(THROTTLING_SCHEMA) PREPROCESSOR_ACTION_SCHEMA = { "regex": (NoDefault, V.is_regex), "action": (NoDefault, V.is_unicode), "params": (None, None)