Skip to content
Newer
Older
100644 25 lines (18 sloc) 643 Bytes
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1 from base import *
2
3 MAGIC = "This shouldn't be sent"
4
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored Apr 16, 2006
5 CONF = """
8e7efc4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1738 5dc97367-9…
alobbs authored Aug 5, 2008
6 vserver!1!rule!500!match = directory
7 vserver!1!rule!500!match!directory = /head-body
8 vserver!1!rule!500!handler = common
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored Apr 16, 2006
9 """
10
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
11 class Test (TestBase):
12 def __init__ (self):
bc8d926 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-9…
alobbs authored Oct 14, 2008
13 TestBase.__init__ (self, __file__)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
14 self.name = "Head doesn't include body"
15
16 self.request = "HEAD /head-body/test HTTP/1.0\r\n"
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored Apr 16, 2006
17 self.conf = CONF
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
18 self.expected_error = 200
19 self.forbidden_content = MAGIC
20
21 def Prepare (self, www):
22 self.Mkdir (www, "head-body")
23 self.WriteFile (www, "head-body/test", 0444, MAGIC)
24
Something went wrong with that request. Please try again.