summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 18f37d1..b83fe8f 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -758,6 +758,13 @@ class TestRedisCommands:
assert r.get('unicode_string').decode('utf-8') == unicode_string
@skip_if_server_version_lt('6.2.0')
+ def test_getdel(self, r):
+ assert r.getdel('a') is None
+ r.set('a', 1)
+ assert r.getdel('a') == b'1'
+ assert r.getdel('a') is None
+
+ @skip_if_server_version_lt('6.2.0')
def test_getex(self, r):
r.set('a', 1)
assert r.getex('a') == b'1'