Fix more pylint error
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d1c32596 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d1c32596 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d1c32596 Branch: refs/heads/trunk Commit: d1c325960d5fe2c914004687264f4fb236f57767 Parents: ba6346f Author: Samuel Chong <[email protected]> Authored: Fri Nov 25 11:29:50 2016 +1100 Committer: Samuel Chong <[email protected]> Committed: Fri Nov 25 11:29:50 2016 +1100 ---------------------------------------------------------------------- libcloud/test/compute/test_dimensiondata_v2_4.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/d1c32596/libcloud/test/compute/test_dimensiondata_v2_4.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_dimensiondata_v2_4.py b/libcloud/test/compute/test_dimensiondata_v2_4.py index ad4b980..15c29f8 100644 --- a/libcloud/test/compute/test_dimensiondata_v2_4.py +++ b/libcloud/test/compute/test_dimensiondata_v2_4.py @@ -2043,7 +2043,7 @@ class DimensionData_v2_4_Tests(unittest.TestCase, TestCaseMixin): tag_dictionaries = {'tagkey1_name': 'dev test', 'tagkey2_name': None} with self.assertRaises(ValueError): - success = self.driver.import_image( + self.driver.import_image( ovf_package_name='aTestGocToNGoc2_export2.mf', name='Libcloud NGOCImage_New 2', description='test', @@ -2056,7 +2056,7 @@ class DimensionData_v2_4_Tests(unittest.TestCase, TestCaseMixin): tag_dictionaries = {'tagkey1_name': 'dev test', 'tagkey2_name': None} with self.assertRaises(ValueError): - success = self.driver.import_image( + self.driver.import_image( ovf_package_name='aTestGocToNGoc2_export2.mf', name='Libcloud NGOCImage_New 2', description='test', @@ -2067,8 +2067,8 @@ class DimensionData_v2_4_Tests(unittest.TestCase, TestCaseMixin): def test_exchange_nic_vlans(self): success = self.driver.ex_exchange_nic_vlans( - nic_id_1='a4b4b42b-ccb5-416f-b052-ce7cb7fdff12', - nic_id_2='b39d09b8-ea65-424a-8fa6-c6f5a98afc69') + nic_id_1='a4b4b42b-ccb5-416f-b052-ce7cb7fdff12', + nic_id_2='b39d09b8-ea65-424a-8fa6-c6f5a98afc69') self.assertTrue(success) def test_change_nic_network_adapter(self): @@ -2077,6 +2077,7 @@ class DimensionData_v2_4_Tests(unittest.TestCase, TestCaseMixin): network_adapter_name='E1000') self.assertTrue(success) + class InvalidRequestError(Exception): def __init__(self, tag): super(InvalidRequestError, self).__init__("Invalid Request - %s" % tag) @@ -3327,28 +3328,28 @@ class DimensionDataMockHttp(StorageMockHttp, MockHttp): return httplib.OK, body, {}, httplib.responses[httplib.OK] def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_cloneServer( - self, method, url, body, headers): + self, method, url, body, headers): body = self.fixtures.load( '2.4/server_clone_response.xml' ) return httplib.OK, body, {}, httplib.responses[httplib.OK] def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_importImage( - self, method, url, body, headers): + self, method, url, body, headers): body = self.fixtures.load( '2.4/import_image_response.xml' ) return httplib.OK, body, {}, httplib.responses[httplib.OK] def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_exchangeNicVlans( - self, method, url, body, headers): + self, method, url, body, headers): body = self.fixtures.load( '2.4/exchange_nic_vlans_response.xml' ) return httplib.OK, body, {}, httplib.responses[httplib.OK] def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_changeNetworkAdapter( - self, method, url, body, headers): + self, method, url, body, headers): body = self.fixtures.load( '2.4/change_nic_networkadapter_response.xml' )
