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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 65e877c..adaa9fc 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -2629,6 +2629,11 @@ class TestRedisCommands(object):
r.set('foo', 'bar')
assert isinstance(r.memory_usage('foo'), int)
+ @skip_if_server_version_lt('4.0.0')
+ def test_module_list(self, r):
+ assert isinstance(r.module_list(), list)
+ assert not r.module_list()
+
class TestBinarySave(object):