You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/11/01 23:00:09 UTC
svn commit: r1196313 - /libcloud/trunk/test/test_utils.py
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)