fix a typo

Change-Id: Ia7e965a0f94e61e580a4c40eda8dffd8d76d2d64
This commit is contained in:
wangqi 2018-03-27 13:39:48 +00:00
parent 3487628917
commit ff5b14db27
2 changed files with 3 additions and 3 deletions

View File

@ -394,7 +394,7 @@ def to_mb(bytes):
def req_to_text(req):
"""
We do a lot request logging for debug, but if the value of one
requst header is encoded in utf-8, an UnicodeEncodeError will
request header is encoded in utf-8, an UnicodeEncodeError will
be raised. So we should carefully encode request headers.
To be consitent with webob, main procedures are copied from

View File

@ -18,7 +18,7 @@ from trove.common.wsgi import Router, Fault
from trove.tests.unittests import trove_testtools
class FakeRequst(object):
class FakeRequest(object):
"""A fake webob request object designed to cause 404.
The dispatcher actually checks if the given request is a dict and throws
@ -44,7 +44,7 @@ class TestRouter(trove_testtools.TestCase):
def test_404_is_fault(self):
"""Test that the dispatcher wraps 404's in a `Fault`."""
fake_request = FakeRequst()
fake_request = FakeRequest()
response = Router._dispatch(fake_request)