Merge "Fix Unsupported Language Test"

This commit is contained in:
Jenkins 2017-03-16 03:00:13 +00:00 committed by Gerrit Code Review
commit bae6e178ab

View File

@ -150,7 +150,7 @@ class RequestTest(test_utils.BaseTestCase):
# best_match_language() returns None.
self._set_expected_languages(all_locales=['it'])
req = wsgi.Request.blank('/', headers={'Accept-Language': 'zh'})
req = wsgi.Request.blank('/', headers={'Accept-Language': 'unknown'})
self.assertIsNone(req.best_match_language())
@mock.patch.object(webob.acceptparse.AcceptLanguage, 'best_match')