tests: uriparse: Test for @ symbol in username

Add test case for URI that contains the @ symbol in username.

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
This commit is contained in:
Radostin Stoyanov 2018-04-18 07:31:26 +01:00 committed by Cole Robinson
parent d81a9a0bc0
commit 087bf7debc

View File

@ -49,3 +49,7 @@ class TestURI(unittest.TestCase):
"qemu+ssh://foo%5Cbar@hostname/system",
scheme="qemu", path="/system", transport="ssh",
hostname="hostname", username="foo\\bar")
self._compare(
"qemu+ssh://user%40domain.org@hostname/system",
scheme="qemu", path="/system", transport="ssh",
hostname="hostname", username="user@domain.org")