Fix misspellings in neutron

Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I93d9e2a65b0c1d1d801cae59b74d7258fbdb17dc
Closes-Bug: #1257295
This commit is contained in:
Shane Wang 2014-02-07 15:27:36 +08:00
parent 260a9f5935
commit 72eb5dde82
4 changed files with 6 additions and 6 deletions

View File

@ -507,7 +507,7 @@ class L3_NAT_db_mixin(l3.RouterPluginBase):
'tenant than Floating IP %(floatingip_id)s and '
'therefore cannot be bound.') % data)
else:
msg = (_('Cannnot create floating IP and bind it to '
msg = (_('Cannot create floating IP and bind it to '
'Port %s, since that port is owned by a '
'different tenant.') % port_id)
raise q_exc.BadRequest(resource='floatingip', msg=msg)

View File

@ -15,7 +15,7 @@
# under the License.
#
"""inital port security
"""initial port security
Revision ID: 1149d7de0cfa
Revises: 1b693c095aa3

View File

@ -25,7 +25,7 @@ from neutron.plugins.cisco.common import cisco_constants as const
from neutron.plugins.cisco.common import cisco_exceptions as c_exc
from neutron.plugins.cisco.db import network_models_v2
# Do NOT remove this import. It is required for all the models to be seen
# by db.initalize() when called from VirtualPhysicalSwitchModelV2.__init__.
# by db.initialize() when called from VirtualPhysicalSwitchModelV2.__init__.
from neutron.plugins.cisco.db import nexus_models_v2 # noqa
from neutron.plugins.openvswitch import ovs_models_v2

View File

@ -700,7 +700,7 @@ class RequestHeadersDeserializerTest(base.BaseTestCase):
req = wsgi.Request.blank('/')
self.assertEqual(
deserializer.deserialize(req, 'nonExistant'), {})
deserializer.deserialize(req, 'nonExistent'), {})
def test_custom(self):
class Deserializer(wsgi.RequestHeadersDeserializer):
@ -857,11 +857,11 @@ class ServerTest(base.BaseTestCase):
class MiddlewareTest(base.BaseTestCase):
def test_process_response(self):
def application(environ, start_response):
response = 'Sucess'
response = 'Success'
return response
response = application('test', 'fake')
result = wsgi.Middleware(application).process_response(response)
self.assertEqual('Sucess', result)
self.assertEqual('Success', result)
class FaultTest(base.BaseTestCase):