pep8 fixes in test_rackspace.py.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/c7c12236 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c7c12236 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c7c12236 Branch: refs/heads/trunk Commit: c7c1223647d072eda408208fffe773c031018ad3 Parents: 10fa680 Author: Tomaz Muraus <[email protected]> Authored: Sat Oct 12 11:20:44 2013 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Sat Oct 12 11:20:44 2013 +0200 ---------------------------------------------------------------------- libcloud/test/compute/test_rackspace.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/c7c12236/libcloud/test/compute/test_rackspace.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_rackspace.py b/libcloud/test/compute/test_rackspace.py index 546126e..4f8ef87 100644 --- a/libcloud/test/compute/test_rackspace.py +++ b/libcloud/test/compute/test_rackspace.py @@ -24,7 +24,7 @@ from libcloud.compute.drivers.rackspace import RackspaceFirstGenNodeDriver from libcloud.compute.drivers.rackspace import RackspaceNodeDriver from libcloud.test.compute.test_openstack import OpenStack_1_0_Tests from libcloud.test.compute.test_openstack import OpenStack_1_1_Tests, \ - OpenStack_1_1_MockHttp + OpenStack_1_1_MockHttp from libcloud.pricing import clear_pricing_data from libcloud.test.secrets import RACKSPACE_NOVA_PARAMS @@ -98,16 +98,22 @@ class RackspaceNovaMockHttp(OpenStack_1_1_MockHttp): def _v2_1337_os_networksv2(self, method, url, body, headers): if method == 'GET': body = self.fixtures.load('_os_networks.json') - return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK]) + return (httplib.OK, body, self.json_content_headers, + httplib.responses[httplib.OK]) elif method == 'POST': body = self.fixtures.load('_os_networks_POST.json') - return (httplib.ACCEPTED, body, self.json_content_headers, httplib.responses[httplib.OK]) + return (httplib.ACCEPTED, body, self.json_content_headers, + httplib.responses[httplib.OK]) raise NotImplementedError() - def _v2_1337_os_networksv2_f13e5051_feea_416b_827a_1a0acc2dad14(self, method, url, body, headers): + def _v2_1337_os_networksv2_f13e5051_feea_416b_827a_1a0acc2dad14(self, + method, + url, body, + headers): if method == 'DELETE': body = '' - return (httplib.ACCEPTED, body, self.json_content_headers, httplib.responses[httplib.OK]) + return (httplib.ACCEPTED, body, self.json_content_headers, + httplib.responses[httplib.OK]) raise NotImplementedError()
