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

Method test_hkeys

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

Source from the content-addressed store, hash-verified

5453 assert r.hincrbyfloat("a", "1", 1.2) == 3.2
5454
5455 def test_hkeys(self, r):
5456 h = {b"a1": b"1", b"a2": b"2", b"a3": b"3"}
5457 r.hset("a", mapping=h)
5458 local_keys = list(h.keys())
5459 remote_keys = r.hkeys("a")
5460 assert sorted(local_keys) == sorted(remote_keys)
5461
5462 def test_hlen(self, r):
5463 r.hset("a", mapping={"1": 1, "2": 2, "3": 3})

Callers

nothing calls this directly

Calls 3

hsetMethod · 0.80
keysMethod · 0.80
hkeysMethod · 0.80

Tested by

no test coverage detected