(self, r)
| 5425 | r.hset("x") |
| 5426 | |
| 5427 | def test_hdel(self, r): |
| 5428 | r.hset("a", mapping={"1": 1, "2": 2, "3": 3}) |
| 5429 | assert r.hdel("a", "2") == 1 |
| 5430 | assert r.hget("a", "2") is None |
| 5431 | assert r.hdel("a", "1", "3") == 2 |
| 5432 | assert r.hlen("a") == 0 |
| 5433 | |
| 5434 | def test_hexists(self, r): |
| 5435 | r.hset("a", mapping={"1": 1, "2": 2, "3": 3}) |