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/03/16 07:18:10 UTC

svn commit: r1082065 - /incubator/libcloud/trunk/test/test_utils.py

Author: tomaz
Date: Wed Mar 16 06:18:10 2011
New Revision: 1082065

URL: http://svn.apache.org/viewvc?rev=1082065&view=rev
Log:
Make mimetype test more flexible.

Modified:
    incubator/libcloud/trunk/test/test_utils.py

Modified: incubator/libcloud/trunk/test/test_utils.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/test/test_utils.py?rev=1082065&r1=1082064&r2=1082065&view=diff
==============================================================================
--- incubator/libcloud/trunk/test/test_utils.py (original)
+++ incubator/libcloud/trunk/test/test_utils.py Wed Mar 16 06:18:10 2011
@@ -42,7 +42,7 @@ class TestUtils(unittest.TestCase):
         file_path = os.path.abspath(__file__)
         mimetype, encoding = libcloud.utils.guess_file_mime_type(file_path=file_path)
 
-        self.assertEqual(mimetype, 'text/x-python')
+        self.assertTrue(mimetype.find('python') != -1)
 
     def test_deprecated_warning(self):
         warnings.showwarning = show_warning