libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1404299 - /libcloud/trunk/libcloud/test/compute/test_vcloud.py
Date Wed, 31 Oct 2012 18:58:21 GMT
Author: tomaz
Date: Wed Oct 31 18:58:20 2012
New Revision: 1404299

URL: http://svn.apache.org/viewvc?rev=1404299&view=rev
Log:
Make it work with 2.5.

Modified:
    libcloud/trunk/libcloud/test/compute/test_vcloud.py

Modified: libcloud/trunk/libcloud/test/compute/test_vcloud.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/test/compute/test_vcloud.py?rev=1404299&r1=1404298&r2=1404299&view=diff
==============================================================================
--- libcloud/trunk/libcloud/test/compute/test_vcloud.py (original)
+++ libcloud/trunk/libcloud/test/compute/test_vcloud.py Wed Oct 31 18:58:20 2012
@@ -337,9 +337,9 @@ class VCloud_1_5_MockHttp(MockHttp, unit
     fixtures = ComputeFileFixtures('vcloud_1_5')
 
     def request(self, method, url, body=None, headers=None, raw=False):
-        self.assertTrue(url.startswith('/api/'), '"{0}" is invalid. Needs to ' \
+        self.assertTrue(url.startswith('/api/'), ('"%s" is invalid. Needs to ' \
                         'start with "/api". The passed URL should be just ' \
-                        'the path, not full URL.'.format(url))
+                        'the path, not full URL.', url))
         super(VCloud_1_5_MockHttp, self).request(method, url, body, headers,
                                                  raw)
 



Mime
View raw message