diff --git a/radicale/tests/test_base.py b/radicale/tests/test_base.py index 8b367a2..f7d2e81 100644 --- a/radicale/tests/test_base.py +++ b/radicale/tests/test_base.py @@ -19,6 +19,7 @@ Radicale tests with simple requests. """ +import base64 import logging import os import posixpath @@ -733,6 +734,38 @@ class BaseRequestsMixIn: assert "href>/calendar.ics/journal1.ics/calendar.ics/journal2.ics + + + + + """) + assert status == 207 + assert "href>%s<" % event_path in answer + + def test_authorization(self): + authorization = "Basic " + base64.b64encode(b"user:").decode() + status, headers, answer = self.request( + "PROPFIND", "/", + """ + + + + + """, + HTTP_AUTHORIZATION=authorization) + assert status == 207 + assert "href>/user/<" in answer + def test_principal_collection_creation(self): """Verify existence of the principal collection.""" status, headers, answer = self.request(