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 2016/07/30 11:32:31 UTC

[2/3] libcloud git commit: removed assertIn to fix test_driver_with_token_signature_version test in python 2.6

removed assertIn to fix test_driver_with_token_signature_version test in python 2.6

Closes #843

Signed-off-by: Tomaz Muraus <to...@tomaz.me>


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

Branch: refs/heads/trunk
Commit: 2761ca96eb1d48c5b8b437a3716ee63d5692e161
Parents: 2163e75
Author: Anton Kozyrev <an...@gmail.com>
Authored: Fri Jul 22 18:26:26 2016 +0300
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Sat Jul 30 13:22:53 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2761ca96/libcloud/test/loadbalancer/test_elb.py
----------------------------------------------------------------------
diff --git a/libcloud/test/loadbalancer/test_elb.py b/libcloud/test/loadbalancer/test_elb.py
index fc42e77..c7afc7c 100644
--- a/libcloud/test/loadbalancer/test_elb.py
+++ b/libcloud/test/loadbalancer/test_elb.py
@@ -46,7 +46,7 @@ class ElasticLBTests(unittest.TestCase):
         token = 'temporary_credentials_token'
         driver = ElasticLBDriver(*LB_ELB_PARAMS, **{'token': token})
         kwargs = driver._ex_connection_class_kwargs()
-        self.assertIn('signature_version', kwargs)
+        self.assertTrue(('signature_version' in kwargs), 'Driver has no attribute signature_version')
         self.assertEquals('4', kwargs['signature_version'], 'Signature version is not 4 with temporary credentials')
 
     def test_list_protocols(self):