diff options
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 15e7620..cd3b13d 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -2177,6 +2177,11 @@ class TestRedisCommands(object): .execute()) assert resp == [0, None, 255] + @skip_if_server_version_lt('4.0.0') + def test_memory_usage(self, r): + r.set('foo', 'bar') + assert isinstance(r.memory_usage('foo'), int) + class TestStrictCommands(object): def test_strict_zadd(self, sr): |