summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2017-08-16 15:21:02 -0700
committerGitHub <noreply@github.com>2017-08-16 15:21:02 -0700
commit29273f2d4277231f26512fd64baf151bc80f75ae (patch)
tree3a6283d26d69a9cb856d609c76265199b1de1c95
parent6c87977e671cafb165f88ea299e531c1a0a71064 (diff)
parentffccbbf8424d868b11f7cd9e59649ab0f67a0391 (diff)
downloadredis-py-29273f2d4277231f26512fd64baf151bc80f75ae.tar.gz
Merge pull request #810 from r0fls/zcount-exclusive-range
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 41c24dc..04aeca4 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):