Skip to content

Commit

Permalink
Adds a new test to the QA to check the new UTF-8 enabled escaping.
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/cherokee/trunk@5249 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Jun 26, 2010
1 parent d79ea8e commit cbc88b6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions qa/248-Colon-UTF8.py
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-

from base import *

DIR = "colon-utf8-1"
FILE = "a農:b園c"

class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__)
self.name = "UTF8 file with colon"

self.request = "GET /%s/ HTTP/1.0\r\n" % (DIR)
self.expected_error = 200
self.expected_content = 'href="%s"' %(FILE.replace(':','%3a'))

def Prepare (self, www):
d = self.Mkdir (www, DIR)
self.WriteFile (d, FILE, 0444, "foo")

3 changes: 2 additions & 1 deletion qa/Makefile.am
Expand Up @@ -252,7 +252,8 @@ run-tests.py \
244-Directory-Overwrite.py \
245-0x9b.py \
246-Dup-CacheControl.py \
247-UTF8-QueryString.py
247-UTF8-QueryString.py \
248-Colon-UTF8.py

test:
./run-tests.py

0 comments on commit cbc88b6

Please sign in to comment.