Modified: CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch (1454 => 1455)
--- CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch 2007-04-05 21:13:24 UTC (rev 1454)
+++ CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch 2007-04-05 21:21:47 UTC (rev 1455)
@@ -82,3 +82,22 @@
for name, acl in (
("none" , self.grant()),
("read" , self.grant(davxml.Read())),
+@@ -363,7 +378,7 @@
+ elif method == "REPORT":
+ # BAD_REQUEST in the allowed case, because we're not actually
+ # including the required XML in the request body.
+- ok = responsecode.BAD_REQUEST
++ ok = responsecode.MULTI_STATUS
+ else:
+ raise AssertionError("We shouldn't be here. (method = %r)" % (method,))
+
+@@ -377,6 +392,9 @@
+ path = os.path.join(self.docroot, name)
+
+ request = SimpleRequest(self.site, method, "/" + name)
++ if method == "REPORT":
++ request.stream = MemoryStream(davxml.PrincipalPropertySearch().toxml())
++
+ _add_auth_header(request)
+
+ def test(response, code=code, path=path):