diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2019-05-23 15:26:12 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2019-05-23 15:26:12 -0700 |
commit | fd67828ff76f94dd6486a87702472798b0d5aead (patch) | |
tree | 8e4deeebbcdfc21af1bfebc9eafca08be748d627 /tests/test_commands.py | |
parent | cdfe2befbe00db4a3c48c9ddd6d64dea15f6f0db (diff) | |
download | redis-py-case-insensitive-callbacks.tar.gz |
case insensitive response callbacks.case-insensitive-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.py | 3 |
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): |