From 4d78736439f3cf313d7f05ee59dbae3822dfbf40 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 18 Jul 2014 16:37:04 +0000 Subject: Pull XML namespaces and so forth from schemas where possible. svn path=/trunk/; revision=5902 --- ca/tests/yamltest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ca/tests/yamltest.py') diff --git a/ca/tests/yamltest.py b/ca/tests/yamltest.py index 1482c4e2..2b65dbd2 100644 --- a/ca/tests/yamltest.py +++ b/ca/tests/yamltest.py @@ -414,8 +414,10 @@ class allocation(object): if not args.skip_config: path = self.path(fn) print "Writing", path - xmlns = "{http://www.hactrn.net/uris/rpki/router-certificate/}" - xml = lxml.etree.Element(xmlns + "router_certificate_requests", version = "1") + xmlns = rpki.relaxng.router_certificate.xmlns + xml = lxml.etree.Element(xmlns + "router_certificate_requests", + version = rpki.relaxng.router_certificate.version, + nsmap = rpki.relaxng.router_certificate.nsmap) for r in self.router_certs: x = lxml.etree.SubElement(xml, xmlns + "router_certificate_request", router_id = str(r.router_id), -- cgit v1.2.3