Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (14 sloc) 0.505 kb
cbc88b6 Alvaro Lopez Ortega Adds a new test to the QA to check the new UTF-8 enabled escaping.
alobbs authored
1 # -*- coding: utf-8 -*-
2
3 from base import *
4
5 DIR = "colon-utf8-1"
6 FILE = "a農:b園c"
7
8 class Test (TestBase):
9 def __init__ (self):
10 TestBase.__init__ (self, __file__)
11 self.name = "UTF8 file with colon"
12
13 self.request = "GET /%s/ HTTP/1.0\r\n" % (DIR)
14 self.expected_error = 200
15 self.expected_content = 'href="%s"' %(FILE.replace(':','%3a'))
16
17 def Prepare (self, www):
18 d = self.Mkdir (www, DIR)
19 self.WriteFile (d, FILE, 0444, "foo")
20
Something went wrong with that request. Please try again.