From 976007b95188af757e5fbf7b75e6d7dc9b5fe7af Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Fri, 26 Aug 2011 10:56:43 +0100 Subject: [PATCH] Cleaning pep8 --- quantum/plugins/cisco/common/cisco_faults.py | 20 ++++++++++---------- tests/unit/test_extensions.py | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/quantum/plugins/cisco/common/cisco_faults.py b/quantum/plugins/cisco/common/cisco_faults.py index 515d67598..ed50ed65a 100644 --- a/quantum/plugins/cisco/common/cisco_faults.py +++ b/quantum/plugins/cisco/common/cisco_faults.py @@ -71,7 +71,7 @@ class PortprofileNotFound(webob.exc.HTTPClientError): """ code = 450 title = 'Portprofile Not Found' - explanation = ('Unable to find a Portprofile with' + explanation = ('Unable to find a Portprofile with' + ' the specified identifier.') @@ -87,8 +87,8 @@ class PortNotFound(webob.exc.HTTPClientError): code = 430 title = 'Port not Found' explanation = ('Unable to find a port with the specified identifier.') - - + + class CredentialNotFound(webob.exc.HTTPClientError): """ subclass of :class:`~HTTPClientError` @@ -100,10 +100,10 @@ class CredentialNotFound(webob.exc.HTTPClientError): """ code = 451 title = 'Credential Not Found' - explanation = ('Unable to find a Credential with' + explanation = ('Unable to find a Credential with' + ' the specified identifier.') - - + + class QosNotFound(webob.exc.HTTPClientError): """ subclass of :class:`~HTTPClientError` @@ -115,10 +115,10 @@ class QosNotFound(webob.exc.HTTPClientError): """ code = 452 title = 'QoS Not Found' - explanation = ('Unable to find a QoS with' + explanation = ('Unable to find a QoS with' + ' the specified identifier.') - - + + class NovatenantNotFound(webob.exc.HTTPClientError): """ subclass of :class:`~HTTPClientError` @@ -130,7 +130,7 @@ class NovatenantNotFound(webob.exc.HTTPClientError): """ code = 453 title = 'Nova tenant Not Found' - explanation = ('Unable to find a Novatenant with' + explanation = ('Unable to find a Novatenant with' + ' the specified identifier.') diff --git a/tests/unit/test_extensions.py b/tests/unit/test_extensions.py index 1860c5666..a33897e47 100644 --- a/tests/unit/test_extensions.py +++ b/tests/unit/test_extensions.py @@ -72,10 +72,10 @@ class ResourceExtensionTest(unittest.TestCase): index_response = test_app.get("/tweedles") self.assertEqual(200, index_response.status_int) self.assertEqual("resource index", index_response.body) - + show_response = test_app.get("/tweedles/25266") self.assertEqual({'data': {'id': "25266"}}, show_response.json) - + def test_resource_extension_with_custom_member_action(self): controller = self.ResourceExtensionController() member = {'custom_member_action': "GET"} -- 2.45.2