from base import * MAGIC = "This_is_the_magic_key" class Test (TestBase): def __init__ (self): TestBase.__init__ (self) self.name = "PHP get" self.request = "GET /php4/get.php?this=1&magic=%s HTTP/1.0\r\n" % (MAGIC) self.expected_error = 200 self.expected_content = MAGIC def Prepare (self, www): self.Mkdir (www, "php4") self.WriteFile (www, "php4/get.php", 0444, '') def Precondition (self): return os.path.exists (PHPCGI_PATH)