diff options
author | Paul Belanger <paul.belanger@polybeacon.com> | 2013-03-30 13:53:51 -0400 |
---|---|---|
committer | Paul Belanger <paul.belanger@polybeacon.com> | 2013-03-30 13:53:51 -0400 |
commit | 12f2e4fcd8153fb4ea9dc00ac79385b1059fb47a (patch) | |
tree | 537c61df2d334a1f49b4e93536f6b22d5e25be4c /tests/server_commands.py | |
parent | 8063b1021718f1eb1ab87530358e70fb171f5cba (diff) | |
download | redis-py-12f2e4fcd8153fb4ea9dc00ac79385b1059fb47a.tar.gz |
Format code per pep8 guidelines
A simple patch to enable pep8 in tox and format our code properly.
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Diffstat (limited to 'tests/server_commands.py')
-rw-r--r-- | tests/server_commands.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py index fb2accc..9c0ee4f 100644 --- a/tests/server_commands.py +++ b/tests/server_commands.py @@ -9,6 +9,7 @@ from redis._compat import (unichr, u, b, ascii_letters, iteritems, dictkeys, from redis.client import parse_info import redis + class ServerCommandsTestCase(unittest.TestCase): def get_client(self, cls=redis.Redis): return cls(host='localhost', port=6379, db=9) @@ -1319,8 +1320,11 @@ class ServerCommandsTestCase(unittest.TestCase): d = {'a': 1, 'b': 2, 'c': 3} self.assert_(self.client.hmset('foo', d)) self.assertEqual( - self.client.hmget('foo', ['a', 'b', 'c']), [b('1'), b('2'), b('3')]) - self.assertEqual(self.client.hmget('foo', ['a', 'c']), [b('1'), b('3')]) + self.client.hmget('foo', ['a', 'b', 'c']), [b('1'), b('2'), b('3')] + ) + self.assertEqual( + self.client.hmget('foo', ['a', 'c']), [b('1'), b('3')] + ) # using *args type args self.assertEquals(self.client.hmget('foo', 'a', 'c'), [b('1'), b('3')]) |