summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Deem <raphael.deem@gmail.com>2016-12-22 13:18:42 -0800
committerRaphael Deem <raphael.deem@gmail.com>2016-12-22 13:18:42 -0800
commitffccbbf8424d868b11f7cd9e59649ab0f67a0391 (patch)
treee812a6d59265fdd05ba594e0e210fb168379b5ce
parentd49aaacb7dd454781fd9cb2cd2cb92e9c07d7d31 (diff)
downloadredis-py-ffccbbf8424d868b11f7cd9e59649ab0f67a0391.tar.gz
test zcount exclusive range
-rw-r--r--tests/test_commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 246ef65..51c6fd4 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -901,6 +901,8 @@ class TestRedisCommands(object):
r.zadd('a', a1=1, a2=2, a3=3)
assert r.zcount('a', '-inf', '+inf') == 3
assert r.zcount('a', 1, 2) == 2
+ assert r.zcount('a', '(' + str(1), 2) == 1
+ assert r.zcount('a', 1, '(' + str(2)) == 1
assert r.zcount('a', 10, 20) == 0
def test_zincrby(self, r):