aboutsummaryrefslogtreecommitdiff
path: root/ca/tests/yamltest.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-07-18 16:37:04 +0000
committerRob Austein <sra@hactrn.net>2014-07-18 16:37:04 +0000
commit4d78736439f3cf313d7f05ee59dbae3822dfbf40 (patch)
treec4777f410f509d95bc3a3b1a1f40832a225a6dbc /ca/tests/yamltest.py
parentb3a6a36b0ba3fbe7dd4d5bc5ddf98a36b6f87a56 (diff)
Pull XML namespaces and so forth from schemas where possible.
svn path=/trunk/; revision=5902
Diffstat (limited to 'ca/tests/yamltest.py')
-rw-r--r--ca/tests/yamltest.py6
1 files changed, 4 insertions, 2 deletions
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),