* Tests/Integration/propfind.py: Print headers to stderr.

the output can now easily be piped through xmllint

Monotone-Parent: 228f7d730cde5a5046b0885c1ac02649ee2b7c05
Monotone-Revision: 4c9ff5822433c2ff8fcad8c7432a9575f9890b24

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-05T16:56:27
This commit is contained in:
Jean Raby
2012-07-05 16:56:27 +00:00
parent 0a2244c2cb
commit 96f1a8b247
+3 -2
View File
@@ -38,8 +38,9 @@ client = webdavlib.WebDAVClient(hostname, port, username, password)
propfind = webdavlib.WebDAVPROPFIND(resource, properties, depth)
client.execute(propfind)
print "response:\n\n%s" % propfind.response["body"]
sys.stderr.write("response:\n\n")
print propfind.response["body"]
if propfind.response.has_key("document"):
print "document tree:"
sys.stderr.write("document tree:\n")
xml.dom.ext.PrettyPrint(propfind.response["document"])