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

Method test_hmset

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

Source from the content-addressed store, hash-verified

5468 assert r.hmget("a", "a", "b", "c") == [b"1", b"2", b"3"]
5469
5470 def test_hmset(self, r):
5471 h = {b"a": b"1", b"b": b"2", b"c": b"3"}
5472 with pytest.warns(DeprecationWarning):
5473 assert r.hmset("a", h)
5474 assert r.hgetall("a") == h
5475
5476 def test_hsetnx(self, r):
5477 # Initially set the hash field

Callers

nothing calls this directly

Calls 2

hmsetMethod · 0.80
hgetallMethod · 0.80

Tested by

no test coverage detected