MCPcopy
hub / github.com/redis/redis-py / test_cluster_copy

Method test_cluster_copy

tests/test_cluster.py:1962–1967  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

1960
1961 @skip_if_server_version_lt("6.2.0")
1962 def test_cluster_copy(self, r):
1963 assert r.copy("{foo}a", "{foo}b") == 0
1964 r.set("{foo}a", "bar")
1965 assert r.copy("{foo}a", "{foo}b") == 1
1966 assert r.get("{foo}a") == b"bar"
1967 assert r.get("{foo}b") == b"bar"
1968
1969 @skip_if_server_version_lt("6.2.0")
1970 def test_cluster_copy_and_replace(self, r):

Callers

nothing calls this directly

Calls 3

copyMethod · 0.80
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected