Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (20 sloc) 0.697 kB
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
1 from base import *
2
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
3 MAGIC = "The_index_page_should_contain_this"
4
5 CONF = """
8e7efc4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1738 5dc97367-9…
alobbs authored
6 vserver!1!rule!340!match = directory
7 vserver!1!rule!340!match!directory = /index2
8 vserver!1!rule!340!handler = common
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
9 """
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
10
11 class Test (TestBase):
12 def __init__ (self):
bc8d926 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-9…
alobbs authored
13 TestBase.__init__ (self, __file__)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
14 self.name = "Directory index, common"
15
16 self.request = "GET /index2/ HTTP/1.0\r\n"
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
17 self.conf = CONF
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
18 self.expected_error = 200
19 self.expected_content = MAGIC
20
21 def Prepare (self, www):
22 self.Mkdir (www, "index2")
23 self.Mkdir (www, "index2/dir1")
24 self.Mkdir (www, "index2/"+MAGIC)
25 self.Mkdir (www, "index2/dir2")
26
Something went wrong with that request. Please try again.