summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2019-05-23 15:26:12 -0700
committerAndy McCurdy <andy@andymccurdy.com>2019-05-28 16:17:40 -0700
commite5eaf56f0775f19594087aec9045e609414e20bf (patch)
treec25290f3b62830a599f8c490370be56649528d00 /tests/test_commands.py
parent904d651c505a9a54cd41da33d9ebd20339c48ee7 (diff)
downloadredis-py-e5eaf56f0775f19594087aec9045e609414e20bf.tar.gz
case insensitive response callbacks.
this change allows users to call client.execute_command('info') or client.execute_command('INFO') and get the same parsed result. Fixes #1168
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 33f78d5..0815427 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -54,6 +54,9 @@ class TestResponseCallbacks(object):
r['a'] = 'foo'
assert r['a'] == 'static'
+ def test_case_insensitive_command_names(self, r):
+ assert r.response_callbacks['del'] == r.response_callbacks['DEL']
+
class TestRedisCommands(object):