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

Method test_client_setname

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

Source from the content-addressed store, hash-verified

1193 assert reset_commands_processed < prior_commands_processed
1194
1195 def test_client_setname(self, r):
1196 node = r.get_random_node()
1197 r.client_setname("redis_py_test", target_nodes=node)
1198 client_name = r.client_getname(target_nodes=node)
1199 assert_resp_response(
1200 r, client_name, "redis_py_test", b"redis_py_test", "redis_py_test"
1201 )
1202
1203 def test_exists(self, r):
1204 d = {"a": b"1", "b": b"2", "c": b"3", "d": b"4"}

Callers

nothing calls this directly

Calls 4

assert_resp_responseFunction · 0.85
client_setnameMethod · 0.80
client_getnameMethod · 0.80
get_random_nodeMethod · 0.45

Tested by

no test coverage detected