from base import * HEADER_VAL="Cherokee_supports_If-None-Match" class Test (TestBase): def __init__ (self): TestBase.__init__ (self) self.name = "PHP: If-None-Match header" self.request = "GET /if_none_match1/test.php HTTP/1.0\r\n" + \ "If-None-Match: %s\r\n" % (HEADER_VAL) self.expected_error = 304 def Prepare (self, www): d = self.Mkdir (www, "if_none_match1") self.WriteFile (d, "test.php", 0444, """""" % (HEADER_VAL)) def Precondition (self): return os.path.exists (PHPCGI_PATH)