Skip to content
This repository
Newer
Older
100644 15 lines (11 sloc) 0.466 kb
ae9d9717 »
2006-04-01 git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
1 from base import *
2
3 class Test (TestBase):
4 def __init__ (self):
bc8d9265 »
2008-10-14 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-9…
5 TestBase.__init__ (self, __file__)
ae9d9717 »
2006-04-01 git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
6 self.name = "Content-Type header"
72f64441 »
2009-12-13 Clean up: Trims trailing spaces.
7 self.request = "GET /content_type1/file.jpg HTTP/1.0\r\n"
ae9d9717 »
2006-04-01 git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
8 self.expected_error = 200
9 self.excepted_content = ["Content-Type", "image/jpeg"]
10
11 def Prepare (self, www):
12 d = self.Mkdir (www, "content_type1")
13 self.WriteFile (d, "file.jpg", 0444, " ")
14
Something went wrong with that request. Please try again.