diff options
author | Alex Grönholm <alex.gronholm+git@nextday.fi> | 2012-08-07 01:25:39 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm+git@nextday.fi> | 2012-08-07 01:25:39 +0300 |
commit | e16cd9cbcb1eac1c078b79a1e81fb70aec96dc6b (patch) | |
tree | b9b9e68dc6445c3fcb4f51306a98f383ad7a3634 /tests/server_commands.py | |
parent | 4f2911456df2e84aee9fb71984a990b9f8f472f5 (diff) | |
download | redis-py-e16cd9cbcb1eac1c078b79a1e81fb70aec96dc6b.tar.gz |
Fixed PEP 8 violations introduced in previous commits
Diffstat (limited to 'tests/server_commands.py')
-rw-r--r-- | tests/server_commands.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py index cbc802b..4498d2e 100644 --- a/tests/server_commands.py +++ b/tests/server_commands.py @@ -3,7 +3,8 @@ import unittest import datetime import time -from redis._compat import unichr, u, b, ascii_letters, iteritems, dictkeys, dictvalues +from redis._compat import (unichr, u, b, ascii_letters, iteritems, dictkeys, + dictvalues) from redis.client import parse_info import redis @@ -1098,7 +1099,7 @@ class ServerCommandsTestCase(unittest.TestCase): self.assertEquals(self.client.hincrby('a', 'a1'), 2) self.assertEquals(self.client.hincrby('a', 'a1', amount=2), 4) # negative values decrement - self.assertEquals(self.client.hincrby('a', 'a1', amount= -3), 1) + self.assertEquals(self.client.hincrby('a', 'a1', amount=-3), 1) # hash that exists, but key that doesn't self.assertEquals(self.client.hincrby('a', 'a2', amount=3), 3) # finally a key that's not an int @@ -1302,7 +1303,8 @@ class ServerCommandsTestCase(unittest.TestCase): self.assertTrue(self.client.rpush(key, c)) # check that KEYS returns all the keys as they are - self.assertEqual(sorted(self.client.keys('*')), sorted(dictkeys(mapping))) + self.assertEqual(sorted(self.client.keys('*')), + sorted(dictkeys(mapping))) # check that it is possible to get list content by key name for key in dictkeys(mapping): |