Monotone-Parent: a79adaa6f36ea178ca12ab0e347e8def006787cc

Monotone-Revision: ad7209d4c578d84bbeceb61506c1e6ed592106da

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-06-02T16:47:07
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-06-02 16:47:07 +00:00
parent 654aa6d7f3
commit ec1f650262
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -1,5 +1,9 @@
2010-06-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Tests/Integration/utilities.py (TestACLUtility.setupRights): we
excape the value for the "user" attribute with
xml.sax.saxutils.escape.
* Tests/Integration/webdavlib.py (HTTPPUT.__init__): added the
"content_type" and "exclusive" optional parameters. The latter
implies the use of the "if-none-match" header.
+2 -1
View File
@@ -2,6 +2,7 @@
import unittest
import webdavlib
import xml.sax.saxutils
class TestUtility():
def __init__(self, test, client, resource = None):
@@ -69,7 +70,7 @@ class TestACLUtility(TestUtility):
aclQuery = ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<acl-query"
+ " xmlns=\"urn:inverse:params:xml:ns:inverse-dav\">"
+ "<set-roles user=\"%s\">%s</set-roles>" % (username,
+ "<set-roles user=\"%s\">%s</set-roles>" % (xml.sax.saxutils.escape(username),
rights_str)
+ "</acl-query>")