From fd67828ff76f94dd6486a87702472798b0d5aead Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Thu, 23 May 2019 15:26:12 -0700 Subject: 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 --- tests/test_commands.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_commands.py') 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): -- cgit v1.2.1