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

Method test_rpush

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

Source from the content-addressed store, hash-verified

4011 assert r.lrange("b", 0, -1) == [b"a3", b"b1", b"b2", b"b3"]
4012
4013 def test_rpush(self, r):
4014 assert r.rpush("a", "1") == 1
4015 assert r.rpush("a", "2") == 2
4016 assert r.rpush("a", "3", "4") == 4
4017 assert r.lrange("a", 0, -1) == [b"1", b"2", b"3", b"4"]
4018
4019 @skip_if_server_version_lt("6.0.6")
4020 def test_lpos(self, r):

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
lrangeMethod · 0.80

Tested by

no test coverage detected