'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)
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
req = wsgi.Request.blank('/')
self.assertEqual(
- deserializer.deserialize(req, 'nonExistant'), {})
+ deserializer.deserialize(req, 'nonExistent'), {})
def test_custom(self):
class Deserializer(wsgi.RequestHeadersDeserializer):
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):