mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
parent
2a9f37defb
commit
11df2f1184
1 changed files with 8 additions and 0 deletions
|
@ -766,6 +766,14 @@ class BaseRequestsMixIn:
|
|||
assert status == 207
|
||||
assert "href>/user/<" in answer
|
||||
|
||||
def test_authentication(self):
|
||||
"""Test if server sends authentication request."""
|
||||
self.configuration.set("rights", "type", "owner_only")
|
||||
self.application = Application(self.configuration, self.logger)
|
||||
status, headers, answer = self.request("MKCOL", "/user/")
|
||||
assert status in (401, 403)
|
||||
assert headers.get("WWW-Authenticate")
|
||||
|
||||
def test_principal_collection_creation(self):
|
||||
"""Verify existence of the principal collection."""
|
||||
status, headers, answer = self.request(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue