Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a new test to the QA to check the new UTF-8 enabled escaping.
git-svn-id: svn://cherokee-project.com/cherokee/trunk@5249 5dc97367-97f1-0310-9951-d761b3857238
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters