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 2013/02/25 16:27:29 UTC

svn commit: r1449746 - /libcloud/branches/0.12.x/libcloud/test/storage/test_cloudfiles.py

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()