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

Method test_hvals

tests/test_commands.py:5483–5488  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

5481 assert r.hget("a", "1") == b"1"
5482
5483 def test_hvals(self, r):
5484 h = {b"a1": b"1", b"a2": b"2", b"a3": b"3"}
5485 r.hset("a", mapping=h)
5486 local_vals = list(h.values())
5487 remote_vals = r.hvals("a")
5488 assert sorted(local_vals) == sorted(remote_vals)
5489
5490 @skip_if_server_version_lt("3.2.0")
5491 def test_hstrlen(self, r):

Callers

nothing calls this directly

Calls 2

hsetMethod · 0.80
hvalsMethod · 0.80

Tested by

no test coverage detected