diff options
author | andy <andy@andymccurdy.com> | 2011-10-24 15:34:27 -0700 |
---|---|---|
committer | andy <andy@andymccurdy.com> | 2011-10-24 15:34:27 -0700 |
commit | 4708260f42dac57a3304eb4f41e90aeab38dc816 (patch) | |
tree | 068c6c27aa72b4a152324fc6391a2b2294f468b0 /tests/server_commands.py | |
parent | 88d69301e5ba420a60ff2a3d57dec7f9b3225a86 (diff) | |
download | redis-py-4708260f42dac57a3304eb4f41e90aeab38dc816.tar.gz |
more spacing issues for debug object pull request
Diffstat (limited to 'tests/server_commands.py')
-rw-r--r-- | tests/server_commands.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py index dae1fb5..0416748 100644 --- a/tests/server_commands.py +++ b/tests/server_commands.py @@ -93,13 +93,13 @@ class ServerCommandsTestCase(unittest.TestCase): self.assertEquals(info['db9']['keys'], 2) def test_debug_object(self): - self.client['a'] = 'foo' - debug_info = self.client.debug_object('a') - self.assert_(len(debug_info) > 0) - self.assertEquals(1, debug_info['refcount']) - self.assert_(debug_info['serializedlength'] > 0) - self.client.rpush('b', 'a1') - debug_info = self.client.debug_object('a') + self.client['a'] = 'foo' + debug_info = self.client.debug_object('a') + self.assert_(len(debug_info) > 0) + self.assertEquals(debug_info['refcount'], 1) + self.assert_(debug_info['serializedlength'] > 0) + self.client.rpush('b', 'a1') + debug_info = self.client.debug_object('a') def test_lastsave(self): self.assert_(isinstance(self.client.lastsave(), datetime.datetime)) @@ -1214,7 +1214,6 @@ class ServerCommandsTestCase(unittest.TestCase): self.assertEquals(client['a'], '1') self.assertEquals(client.ttl('a'), 60) - def test_strict_expire(self): "TTL is -1 by default in StrictRedis" client = self.get_client(redis.StrictRedis) |