diff options
Diffstat (limited to 'tests/test_wsgi.py')
-rw-r--r-- | tests/test_wsgi.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_wsgi.py b/tests/test_wsgi.py index 8ac594a8..369dd952 100644 --- a/tests/test_wsgi.py +++ b/tests/test_wsgi.py @@ -134,6 +134,11 @@ class ApplicationTest(BaseWSGITest): self.assertIn("testkey", app.kwargs) self.assertEquals("test", app.kwargs["testkey"]) + def test_render_exception(self): + e = exception.Unauthorized(message=u'\u7f51\u7edc') + resp = wsgi.render_exception(e) + self.assertEqual(resp.status_int, 401) + class ExtensionRouterTest(BaseWSGITest): def test_extensionrouter_local_config(self): |