libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1196313 - /libcloud/trunk/test/test_utils.py
Date Tue, 01 Nov 2011 22:00:09 GMT
Author: tomaz
Date: Tue Nov  1 22:00:08 2011
New Revision: 1196313

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

Modified:
    libcloud/trunk/test/test_utils.py

Modified: libcloud/trunk/test/test_utils.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/test/test_utils.py?rev=1196313&r1=1196312&r2=1196313&view=diff
==============================================================================
--- libcloud/trunk/test/test_utils.py (original)
+++ libcloud/trunk/test/test_utils.py Tue Nov  1 22:00:08 2011
@@ -29,11 +29,13 @@ from libcloud.compute.providers import D
 
 WARNINGS_BUFFER = []
 
+
 def show_warning(msg, cat, fname, lno, line=None):
     WARNINGS_BUFFER.append((msg, cat, fname, lno))
 
 original_func = warnings.showwarning
 
+
 class TestUtils(unittest.TestCase):
     def setUp(self):
         global WARNINGS_BUFFER
@@ -46,7 +48,8 @@ class TestUtils(unittest.TestCase):
 
     def test_guess_file_mime_type(self):
         file_path = os.path.abspath(__file__)
-        mimetype, encoding = libcloud.utils.guess_file_mime_type(file_path=file_path)
+        mimetype, encoding = libcloud.utils.guess_file_mime_type(
+                file_path=file_path)
 
         self.assertTrue(mimetype.find('python') != -1)
 
@@ -143,7 +146,6 @@ class TestUtils(unittest.TestCase):
         result = libcloud.utils.exhaust_iterator(iterator=iterator_func())
         self.assertEqual(result, data)
 
-
         data = '12345678990'
         iterator = StringIO(data)
         result = libcloud.utils.exhaust_iterator(iterator=iterator)



Mime
View raw message