libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [2/3] git commit: Sort the regions for a consistent result.
Date Tue, 05 Aug 2014 21:02:45 GMT
Sort the regions for a consistent result.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/aa0879d9
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/aa0879d9
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/aa0879d9

Branch: refs/heads/trunk
Commit: aa0879d93866754a734cafb4725df63258ecf65c
Parents: a2694af
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Tue Aug 5 22:55:40 2014 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Tue Aug 5 22:58:20 2014 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_openstack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/aa0879d9/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py
index e097128..06e79ba 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -115,7 +115,7 @@ class OpenStackServiceCatalogTests(unittest.TestCase):
 
     def test_get_regions(self):
         regions = self.service_catalog.get_regions()
-        self.assertEqual(regions, ['ORD', 'LON'])
+        self.assertEqual(sorted(regions), ['LON', 'ORD'])
 
     def test_get_service_names(self):
         OpenStackBaseConnection.conn_classes = (OpenStack_2_0_MockHttp,


Mime
View raw message