summaryrefslogtreecommitdiffstats
path: root/tests/cli_tests/test_cli_start.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli_tests/test_cli_start.py')
-rw-r--r--tests/cli_tests/test_cli_start.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cli_tests/test_cli_start.py b/tests/cli_tests/test_cli_start.py
index d33185a..00fcbf7 100644
--- a/tests/cli_tests/test_cli_start.py
+++ b/tests/cli_tests/test_cli_start.py
@@ -10,6 +10,14 @@ def test_start_on_connection_error():
cli.close()
+def test_start_with_client_name():
+ cli = pexpect.spawn("iredis --client_name custom_name", timeout=2)
+ cli.expect("iredis")
+ cli.sendline("CLIENT GETNAME")
+ cli.expect("custom_name")
+ cli.close()
+
+
def test_short_help_option(config):
c = pexpect.spawn("iredis -h", timeout=2)