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 5c29dd5..65e877c 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -1612,6 +1612,10 @@ class TestRedisCommands(object):
# key inside of hash that doesn't exist returns null value
assert r.hget('a', 'b') is None
+ # keys with bool(key) == False
+ assert r.hset('a', 0, 10) == 1
+ assert r.hset('a', '', 10) == 1
+
def test_hset_with_multi_key_values(self, r):
r.hset('a', mapping={'1': 1, '2': 2, '3': 3})
assert r.hget('a', '1') == b'1'