summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKonstantin Merenkov <kmerenkov@gmail.com>2010-05-22 02:58:15 +0800
committerAndy McCurdy <andy@andymccurdy.com>2010-06-02 01:42:49 +0800
commit7e8ec2e28d636fb878617f1d0788973aaffd309c (patch)
tree0e1dbbc0383f8d14d2c55eab84bb2b932d81aa96 /tests
parent9f360d566960de71eb8608fa9ce83777482a9dc9 (diff)
downloadredis-py-7e8ec2e28d636fb878617f1d0788973aaffd309c.tar.gz
blpop / brpop can accept string as key
Diffstat (limited to 'tests')
-rw-r--r--tests/server_commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py
index 5e706e3..bc8a218 100644
--- a/tests/server_commands.py
+++ b/tests/server_commands.py
@@ -224,6 +224,8 @@ class ServerCommandsTestCase(unittest.TestCase):
self.assertEquals(self.client.blpop(['b', 'a'], timeout=1), ['a', 'a'])
self.assertEquals(self.client.blpop(['b', 'a'], timeout=1), ['a', 'b'])
self.assertEquals(self.client.blpop(['b', 'a'], timeout=1), None)
+ self.make_list('c', 'a')
+ self.assertEquals(self.client.blpop('c', timeout=1), ['c', 'a'])
def test_brpop(self):
self.make_list('a', 'ab')
@@ -233,6 +235,8 @@ class ServerCommandsTestCase(unittest.TestCase):
self.assertEquals(self.client.brpop(['b', 'a'], timeout=1), ['a', 'b'])
self.assertEquals(self.client.brpop(['b', 'a'], timeout=1), ['a', 'a'])
self.assertEquals(self.client.brpop(['b', 'a'], timeout=1), None)
+ self.make_list('c', 'a')
+ self.assertEquals(self.client.brpop('c', timeout=1), ['c', 'a'])
def test_lindex(self):
# no key