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/07 13:16:01 UTC

[5/5] git commit: pep8 fixes in the tests.

pep8 fixes in the tests.


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

Branch: refs/heads/trunk
Commit: 34ec154b125c9a7cf1717131dfe938fcf07876aa
Parents: 0ece13d
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Oct 7 13:10:45 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Oct 7 13:10:45 2013 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_nephoscale.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/34ec154b/libcloud/test/compute/test_nephoscale.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_nephoscale.py b/libcloud/test/compute/test_nephoscale.py
index 7a83808..cc3636a 100644
--- a/libcloud/test/compute/test_nephoscale.py
+++ b/libcloud/test/compute/test_nephoscale.py
@@ -21,18 +21,16 @@ import unittest
 from libcloud.utils.py3 import httplib
 
 from libcloud.compute.drivers.nephoscale import NephoscaleNodeDriver
-from libcloud.compute.base import Node
 
 from libcloud.test import MockHttp
 from libcloud.test.compute import TestCaseMixin
 from libcloud.test.file_fixtures import ComputeFileFixtures
-from libcloud.common.types import InvalidCredsError, LibcloudError
 
 
 class NephoScaleTest(unittest.TestCase, TestCaseMixin):
     def setUp(self):
         NephoscaleNodeDriver.connectionCls.conn_classes = (
-                                  None, NephoscaleMockHttp)
+            NephoscaleMockHttp, NephoscaleMockHttp)
         self.driver = NephoscaleNodeDriver('user', 'password')
 
     def test_list_sizes(self):
@@ -119,10 +117,10 @@ class NephoScaleTest(unittest.TestCase, TestCaseMixin):
                           image=image)
 
     def test_delete_ssh_keys(self):
-        key = self.driver.ex_delete_keypair(key_id=72209, ssh=True)
+        self.assertTrue(self.driver.ex_delete_keypair(key_id=72209, ssh=True))
 
     def test_delete_password_keys(self):
-        key = self.driver.ex_delete_keypair(key_id=72211)
+        self.assertTrue(self.driver.ex_delete_keypair(key_id=72211))
 
 
 class NephoscaleMockHttp(MockHttp):