(self, r)
| 5474 | assert r.hgetall("a") == h |
| 5475 | |
| 5476 | def test_hsetnx(self, r): |
| 5477 | # Initially set the hash field |
| 5478 | assert r.hsetnx("a", "1", 1) |
| 5479 | assert r.hget("a", "1") == b"1" |
| 5480 | assert not r.hsetnx("a", "1", 2) |
| 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"} |