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

Method test_sort_basic

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

Source from the content-addressed store, hash-verified

5495
5496 # SORT
5497 def test_sort_basic(self, r):
5498 r.rpush("a", "3", "2", "1", "4")
5499 assert r.sort("a") == [b"1", b"2", b"3", b"4"]
5500
5501 def test_sort_limited(self, r):
5502 r.rpush("a", "3", "2", "1", "4")

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected