summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-10 21:48:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-03-10 21:48:34 -0400
commit69665a704581112ef4ab645cbaed3d56431d477e (patch)
treedbb5926fafe9bf092d476a6d61f1cc225bfe177f
parent81f3b0552f9a027bb8937892eeb7a5e3c6626248 (diff)
downloadcherrypy-69665a704581112ef4ab645cbaed3d56431d477e.tar.gz
Add test capturing failure. Ref #1360
-rw-r--r--cherrypy/test/test_encoding.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cherrypy/test/test_encoding.py b/cherrypy/test/test_encoding.py
index 85869a9d..564a4c4f 100644
--- a/cherrypy/test/test_encoding.py
+++ b/cherrypy/test/test_encoding.py
@@ -1,3 +1,5 @@
+#-*- coding: utf-8 -*-
+
import gzip
import cherrypy
@@ -393,3 +395,8 @@ class EncodingTests(helper.CPWebCase):
def test_UnicodeHeaders(self):
self.getPage('/cookies_and_headers')
self.assertBody('Any content')
+
+ def test_404(self):
+ self.getPage('/%C2%A3')
+ self.assertStatus(404)
+ self.assertInBody('/£')