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/10/26 00:01:48 UTC

[8/9] git commit: Fix a test.

Fix a test.


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

Branch: refs/heads/trunk
Commit: fa06fd7c1b46198fe39d77a167164a4d676c4d17
Parents: a73a3bd
Author: Tomaz Muraus <to...@apache.org>
Authored: Sat Oct 26 00:00:52 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sat Oct 26 00:00:52 2013 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_openstack.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/fa06fd7c/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py
index 95ceed6..44085d9 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -1228,7 +1228,7 @@ class OpenStack_1_1_Tests(unittest.TestCase, TestCaseMixin):
         self.assertEqual(keypair.name, 'key2')
         self.assertEqual(
             keypair.fingerprint, '5d:66:33:ae:99:0f:fb:cb:86:f2:bc:ae:53:99:b6:ed')
-        self.assertTrue(keypair.public_key > 10)
+        self.assertTrue(len(keypair.public_key) > 10)
         self.assertEqual(keypair.private_key, None)
 
     def test_ex_create_keypair(self):
@@ -1238,8 +1238,8 @@ class OpenStack_1_1_Tests(unittest.TestCase, TestCaseMixin):
 
         self.assertEqual(keypair.fingerprint,
                          '80:f8:03:a7:8e:c1:c3:b1:7e:c5:8c:50:04:5e:1c:5b')
-        self.assertTrue(keypair.public_key > 10)
-        self.assertTrue(keypair.private_key > 10)
+        self.assertTrue(len(keypair.public_key) > 10)
+        self.assertTrue(len(keypair.private_key) > 10)
 
     def test_ex_import_keypair(self):
         name = 'key3'