def setACL(self, rurl, aces):

        assert(isinstance(rurl, URL))

        # Create WebDAV ACL
        request = ACL(self, rurl.relativeURL(), aces)

        # Process it
        self.runSession(request)

        if request.getStatusCode() not in (statuscodes.OK, statuscodes.Created, statuscodes.NoContent):
            self.handleHTTPError(request)
    def test_Method(self):

        server = Session("www.example.com")
        request = ACL(server, "/", ())
        self.assertEqual(request.getMethod(), "ACL")