libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1196322 - /libcloud/trunk/test/storage/test_base.py
Date Tue, 01 Nov 2011 22:11:49 GMT
Author: tomaz
Date: Tue Nov  1 22:11:49 2011
New Revision: 1196322

URL: http://svn.apache.org/viewvc?rev=1196322&view=rev
Log:
pep8, no functional changes.

Modified:
    libcloud/trunk/test/storage/test_base.py

Modified: libcloud/trunk/test/storage/test_base.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/test/storage/test_base.py?rev=1196322&r1=1196321&r2=1196322&view=diff
==============================================================================
--- libcloud/trunk/test/storage/test_base.py (original)
+++ libcloud/trunk/test/storage/test_base.py Tue Nov  1 22:11:49 2011
@@ -24,6 +24,7 @@ from libcloud.storage.base import Storag
 
 from test import StorageMockHttp # pylint: disable-msg=E0611
 
+
 class BaseStorageTests(unittest.TestCase):
     def setUp(self):
         self.send_called = 0
@@ -46,8 +47,8 @@ class BaseStorageTests(unittest.TestCase
         class SomeClass(object):
             pass
 
-        valid_iterators = [ Iterator(), Iterator2(), StringIO('bar') ]
-        invalid_iterators = [ 'foobar', '', False, True, 1, object() ]
+        valid_iterators = [Iterator(), Iterator2(), StringIO('bar')]
+        invalid_iterators = ['foobar', '', False, True, 1, object()]
 
         def upload_func(*args, **kwargs):
             return True, 'barfoo', 100
@@ -82,8 +83,9 @@ class BaseStorageTests(unittest.TestCase
 
         # Normal
         success, data_hash, bytes_transferred = \
-                 self.driver1._stream_data(response=response, iterator=iterator,
-                                          chunked=False, calculate_hash=True)
+                 self.driver1._stream_data(response=response,
+                                           iterator=iterator,
+                                           chunked=False, calculate_hash=True)
 
         self.assertTrue(success)
         self.assertEqual(data_hash, hashlib.md5('').hexdigest())
@@ -92,8 +94,9 @@ class BaseStorageTests(unittest.TestCase
 
         # Chunked
         success, data_hash, bytes_transferred = \
-                 self.driver1._stream_data(response=response, iterator=iterator,
-                                          chunked=True, calculate_hash=True)
+                 self.driver1._stream_data(response=response,
+                                           iterator=iterator,
+                                           chunked=True, calculate_hash=True)
 
         self.assertTrue(success)
         self.assertEqual(data_hash, hashlib.md5('').hexdigest())



Mime
View raw message