示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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)
示例#4
0
    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)