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

Method test_lpop

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

Source from the content-addressed store, hash-verified

3338 assert r.llen("a") == 3
3339
3340 def test_lpop(self, r):
3341 r.rpush("a", "1", "2", "3")
3342 assert r.lpop("a") == b"1"
3343 assert r.lpop("a") == b"2"
3344 assert r.lpop("a") == b"3"
3345 assert r.lpop("a") is None
3346
3347 @skip_if_server_version_lt("6.2.0")
3348 def test_lpop_count(self, r):

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
lpopMethod · 0.80

Tested by

no test coverage detected