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

Method test_lpush

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

Source from the content-addressed store, hash-verified

3353 assert r.lpop("a", 3) is None
3354
3355 def test_lpush(self, r):
3356 assert r.lpush("a", "1") == 1
3357 assert r.lpush("a", "2") == 2
3358 assert r.lpush("a", "3", "4") == 4
3359 assert r.lrange("a", 0, -1) == [b"4", b"3", b"2", b"1"]
3360
3361 def test_lpushx(self, r):
3362 assert r.lpushx("a", "1") == 0

Callers

nothing calls this directly

Calls 2

lpushMethod · 0.80
lrangeMethod · 0.80

Tested by

no test coverage detected