diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2018-11-14 22:29:41 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2018-11-14 22:29:41 -0800 |
commit | 32a1a3f7ede2ee819d411c7ee011e818539e42e5 (patch) | |
tree | 84ca7f45fb3fbf3070e96338acbed0bfd1c51394 /tests/test_commands.py | |
parent | 0bd66a9eb6ecdb96183f78d39a5173e931edb17c (diff) | |
download | redis-py-32a1a3f7ede2ee819d411c7ee011e818539e42e5.tar.gz |
saner handling of decr/incr vs decrby/incrby
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 8a6be40..28b8813 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -301,6 +301,11 @@ class TestRedisCommands(object): assert r.decr('a', amount=5) == -7 assert r['a'] == b'-7' + def test_decrby(self, r): + assert r.decrby('a', amount=2) == -2 + assert r.decrby('a', amount=3) == -5 + assert r['a'] == b'-5' + def test_delete(self, r): assert r.delete('a') == 0 r['a'] = 'foo' |