From 087bf7debc648166fcf97cc079aaa70edac8b40e Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Wed, 18 Apr 2018 07:31:26 +0100 Subject: [PATCH] tests: uriparse: Test for @ symbol in username Add test case for URI that contains the @ symbol in username. Signed-off-by: Radostin Stoyanov --- tests/uriparse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/uriparse.py b/tests/uriparse.py index 5f7338204..e2e713e79 100644 --- a/tests/uriparse.py +++ b/tests/uriparse.py @@ -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")