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 802d8e4..2136d37 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -3613,6 +3613,14 @@ class TestRedisCommands: assert r.restore(key, 0, dumpdata, frequency=5) assert r.get(key) == b'blee!' + @skip_if_server_version_lt('5.0.0') + def test_replicaof(self, r): + + with pytest.raises(redis.ResponseError): + assert r.replicaof("NO ONE") + + assert r.replicaof("NO", "ONE") + class TestBinarySave: |