def setUp(self): self.user = "******" self.types_dict = vtypes.get_types(dummytypes) self.rt = vrt.load_reference_tree(self.types_dict, xmls, schema_path) self.config_tree = vct.ConfigNode("root") self.validator = vrt.PathValidator(tree=self.rt, types=self.types_dict)
def setUp(self): self.user = "******" self.types_dict = vtypes.get_types(dummytypes) self.rt = vrt.load_reference_tree( self.types_dict, xmls, schema_path) self.config_tree = vct.ConfigNode("root") self.validator = vrt.PathValidator(tree=self.rt, types=self.types_dict)
def setUp(self): self.parser = vcurly.Parser() self.user = "******" self.types_dict = vtypes.get_types(dummytypes) self.rt = vrt.load_reference_tree(self.types_dict, xmls, schema_path) self.config_tree = vct.ConfigNode("root") self.validator = vrt.PathValidator(tree=self.rt, types=self.types_dict) self.session = vsession.Session(self.config_tree, self.validator, self.user) self.session.configure() ast = self.parser.parse(TEST_CONFIG) vcurly.load(ast, self.session)
def setUp(self): self.parser = vcurly.Parser() self.user = "******" self.types_dict = vtypes.get_types(dummytypes) self.rt = vrt.load_reference_tree( self.types_dict, xmls, schema_path) self.config_tree = vct.ConfigNode("root") self.validator = vrt.PathValidator(tree=self.rt, types=self.types_dict) self.session = vsession.Session( self.config_tree, self.validator, self.user) self.session.configure() ast = self.parser.parse(TEST_CONFIG) vcurly.load(ast, self.session)