1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Cosmetic changes

This commit is contained in:
Unrud 2020-01-21 19:40:02 +01:00
parent fc180266d5
commit db7587c593
7 changed files with 35 additions and 38 deletions

View file

@ -84,10 +84,9 @@ class TestBaseAuthRequests(BaseTest):
("😁", "🔑", False), ("😀", "", False),
("", "🔑", False), ("", "", False))
for user, password, valid in test_matrix:
status, _ = self.propfind(
"/", check=207 if valid else 401, HTTP_AUTHORIZATION=(
"Basic %s" % base64.b64encode(
("%s:%s" % (user, password)).encode()).decode()))
self.propfind("/", check=207 if valid else 401,
HTTP_AUTHORIZATION=("Basic %s" % base64.b64encode(
("%s:%s" % (user, password)).encode()).decode()))
def test_htpasswd_plain(self):
self._test_htpasswd("plain", "tmp:bepo")