Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 531 Bytes
# -*- coding: utf-8 -*-
import os
from base import *
DIR = "0x9b_1"
FILE = ""
MAGIC = "0x9b is an ANSI escape.."
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "ANSI 0x9b in a UTF-8 request"
self.request = "GET /%s/%s HTTP/1.0\r\n" %(DIR, FILE)
self.expected_error = 200
self.expected_content = MAGIC
def Prepare (self, www):
d = self.Mkdir (www, DIR)
self.WriteFile (d, FILE, 0666, MAGIC)
Something went wrong with that request. Please try again.