summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 45206b2..7293810 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -341,6 +341,10 @@ class TestRedisCommands(object):
with pytest.raises(KeyError):
r['a']
+ def test_getitem_does_not_raise_keyerror_for_empty_string(self, r):
+ r['a'] = b("")
+ assert r['a'] == b("")
+
def test_get_set_bit(self, r):
# no value
assert not r.getbit('a', 5)