libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [11/12] libcloud git commit: Update affected tests.
Date Fri, 20 May 2016 10:09:11 GMT
Update affected tests.


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

Branch: refs/heads/trunk
Commit: 74cc72311ddce0ae3f3794e85add9b20254940b1
Parents: f1594bb
Author: Tomaz Muraus <tomaz@tomaz.me>
Authored: Fri May 20 11:49:04 2016 +0200
Committer: Tomaz Muraus <tomaz@tomaz.me>
Committed: Fri May 20 11:49:04 2016 +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/74cc7231/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py
index f5941b0..1d7049e 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -858,7 +858,7 @@ class OpenStack_1_1_Tests(unittest.TestCase, TestCaseMixin):
         self.assertEqual(len(sizes), 8, 'Wrong sizes count')
 
         for size in sizes:
-            self.assertTrue(isinstance(size.price, float),
+            self.assertTrue(size.price is None or isinstance(size.price, float),
                             'Wrong size price type')
             self.assertTrue(isinstance(size.ram, int))
             self.assertTrue(isinstance(size.vcpus, int))


Mime
View raw message