Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 516 Bytes
from base import *
DIR = "test290"
FILE = "what?ever.txt"
MAGIC = "Files can contain question marks"
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "Question mark in name"
self.request = "GET /%s/%s HTTP/1.0\r\n" %(DIR, FILE.replace('?','%3f'))
self.expected_error = 200
self.expected_content = MAGIC
def Prepare (self, www):
d = self.Mkdir (www, DIR)
self.WriteFile (d, FILE, 0444, MAGIC)
Jump to Line
Something went wrong with that request. Please try again.