summaryrefslogtreecommitdiffstats
path: root/tests/cli_tests/test_command_restore.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/cli_tests/test_command_restore.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cli_tests/test_command_restore.py b/tests/cli_tests/test_command_restore.py
new file mode 100644
index 0000000..1c34405
--- /dev/null
+++ b/tests/cli_tests/test_command_restore.py
@@ -0,0 +1,6 @@
+def test_restore_command(clean_redis, cli):
+ cli.sendline(r'restore foo1 0 "\x00\x03bar\t\x006L\x18\xac\xba\xe0\x9e\xa6"')
+ cli.expect(["OK", "127.0.0.1"])
+
+ cli.sendline("get foo1")
+ cli.expect('"bar"')