from base import * MAGIC1 = "This is the content of.." MAGIC2 = " ..the PHP index file" class Test (TestBase): def __init__ (self): TestBase.__init__ (self) self.name = "Directory indexer, PHP" self.request = "GET /directoryindex2/ HTTP/1.0\r\n" self.conf = "Directory /directoryindex2 { Handler common }" self.expected_error = 200 self.expected_content = MAGIC1+MAGIC2 self.forbidden_content = "'%(MAGIC1, MAGIC2)) def Precondition (self): return os.path.exists (PHPCGI_PATH)