libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1449746 - /libcloud/branches/0.12.x/libcloud/test/storage/test_cloudfiles.py
Date Mon, 25 Feb 2013 15:27:29 GMT
Author: tomaz
Date: Mon Feb 25 15:27:29 2013
New Revision: 1449746

URL: http://svn.apache.org/r1449746
Log:
Fix a regression which could cause test to fail under some circumstances because
hash ordering is not guaranteed. Part of LIBCLOUD-245.

Modified:
    libcloud/branches/0.12.x/libcloud/test/storage/test_cloudfiles.py

Modified: libcloud/branches/0.12.x/libcloud/test/storage/test_cloudfiles.py
URL: http://svn.apache.org/viewvc/libcloud/branches/0.12.x/libcloud/test/storage/test_cloudfiles.py?rev=1449746&r1=1449745&r2=1449746&view=diff
==============================================================================
--- libcloud/branches/0.12.x/libcloud/test/storage/test_cloudfiles.py (original)
+++ libcloud/branches/0.12.x/libcloud/test/storage/test_cloudfiles.py Mon Feb 25 15:27:29
2013
@@ -640,7 +640,7 @@ class CloudFilesTests(unittest.TestCase)
         ret = self.driver.ex_get_object_temp_url(obj, 'GET')
         temp_url = 'https://storage101.ord1.clouddrive.com/v1/MossoCloudFS/foo_bar_container/foo_bar_object?temp_url_expires=60&temp_url_sig=%s'
% (sig)
 
-        self.assertEquals(ret, temp_url)
+        self.assertEquals(''.join(sorted(ret)), ''.join(sorted(temp_url)))
 
     def test_ex_get_object_temp_url_no_key_raises_key_error(self):
         self.driver.ex_get_meta_data = mock.Mock()



Mime
View raw message