(self, r)
| 4049 | assert r.lpos("a", "c", count=0, maxlen=7, rank=2) == [6] |
| 4050 | |
| 4051 | def test_rpushx(self, r): |
| 4052 | assert r.rpushx("a", "b") == 0 |
| 4053 | assert r.lrange("a", 0, -1) == [] |
| 4054 | r.rpush("a", "1", "2", "3") |
| 4055 | assert r.rpushx("a", "4") == 4 |
| 4056 | assert r.lrange("a", 0, -1) == [b"1", b"2", b"3", b"4"] |
| 4057 | |
| 4058 | @pytest.mark.onlynoncluster |
| 4059 | def test_lists_with_byte_keys(self, r): |