-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
8 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
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 |
---|---|---|
|
@@ -19,9 +19,13 @@ def test_remove_credentials(self): | |
def test_remove_credentials_ipv4_literal(self): | ||
url = "http://someuser:[email protected]:8080/test/path?query=value" | ||
cleaned_url = remove_url_credentials(url) | ||
self.assertEqual(cleaned_url, "http://127.0.0.1:8080/test/path?query=value") | ||
self.assertEqual( | ||
cleaned_url, "http://127.0.0.1:8080/test/path?query=value" | ||
) | ||
|
||
def test_remove_credentials_ipv6_literal(self): | ||
url = "http://someuser:somepass@[::1]:8080/test/path?query=value" | ||
cleaned_url = remove_url_credentials(url) | ||
self.assertEqual(cleaned_url, "http://[::1]:8080/test/path?query=value") | ||
self.assertEqual( | ||
cleaned_url, "http://[::1]:8080/test/path?query=value" | ||
) |