summaryrefslogtreecommitdiffstats
path: root/tests/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_entry.py13
-rw-r--r--tests/unittests/test_utils.py1
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/unittests/test_entry.py b/tests/unittests/test_entry.py
index e53861e..99d6931 100644
--- a/tests/unittests/test_entry.py
+++ b/tests/unittests/test_entry.py
@@ -175,6 +175,19 @@ def test_command_shell_options_higher_priority():
),
),
(
+ "redis://username:pass@word@localhost:12345/2",
+ DSN(
+ scheme="redis",
+ host="localhost",
+ port=12345,
+ path=None,
+ db=2,
+ username="username",
+ password="pass@word",
+ verify_ssl=None,
+ ),
+ ),
+ (
"redis://username@localhost:12345",
DSN(
scheme="redis",
diff --git a/tests/unittests/test_utils.py b/tests/unittests/test_utils.py
index 98ea8db..e00eaff 100644
--- a/tests/unittests/test_utils.py
+++ b/tests/unittests/test_utils.py
@@ -55,6 +55,7 @@ def test_timer():
(r'""', [""]), # set foo "" is a legal command
(r"\\", ["\\\\"]), # backslash are legal
("\\hello\\", ["\\hello\\"]), # backslash are legal
+ ('foo "bar\\n1"', ["foo", "bar\n1"]),
],
)
def test_stripe_quote_escape_in_quote(test_input, expected):