diff options
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index a283afc..736ae45 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -531,6 +531,14 @@ class TestRedisCommands: def test_lastsave(self, r): assert isinstance(r.lastsave(), datetime.datetime) + @skip_if_server_version_lt('5.0.0') + def test_lolwut(self, r): + lolwut = r.lolwut().decode('utf-8') + assert 'Redis ver.' in lolwut + + lolwut = r.lolwut(5, 6, 7, 8).decode('utf-8') + assert 'Redis ver.' in lolwut + def test_object(self, r): r['a'] = 'foo' assert isinstance(r.object('refcount', 'a'), int) |