forked from python-caldav/caldav
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring maps code on set comprehension (python-caldav#417)
- Loading branch information
1 parent
1a700ca
commit 3031145
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1293,12 +1293,12 @@ def testExtractAuth(self): | |
""" | ||
cal_url = "http://me:[email protected]:80/" | ||
with DAVClient(url=cal_url) as client: | ||
assert client.extract_auth_types("Basic\n") == ["basic"] | ||
assert client.extract_auth_types("Basic") == ["basic"] | ||
assert client.extract_auth_types('Basic Realm=foo;charset="UTF-8"') == [ | ||
assert client.extract_auth_types("Basic\n") == {"basic"} | ||
assert client.extract_auth_types("Basic") == {"basic"} | ||
assert client.extract_auth_types('Basic Realm=foo;charset="UTF-8"') == { | ||
"basic" | ||
] | ||
assert client.extract_auth_types("Basic,dIGEST Realm=foo") == [ | ||
} | ||
assert client.extract_auth_types("Basic,dIGEST Realm=foo") == { | ||
"basic", | ||
"digest", | ||
] | ||
} |