web/test/unittest_http.py
branchstable
changeset 8743 27a83746aebd
parent 8695 358d8bed9626
child 9229 739ae5366bed
equal deleted inserted replaced
8742:bd374bd906f3 8743:27a83746aebd
    19         req.headers_out.addRawHeader(key, str(value))
    19         req.headers_out.addRawHeader(key, str(value))
    20     # process
    20     # process
    21     status = None
    21     status = None
    22     try:
    22     try:
    23         req.validate_cache()
    23         req.validate_cache()
    24     except StatusResponse, ex:
    24     except StatusResponse as ex:
    25         status = ex.status
    25         status = ex.status
    26     return status, req
    26     return status, req
    27 
    27 
    28 class HTTPCache(TestCase):
    28 class HTTPCache(TestCase):
    29     """Check that the http cache logiac work as expected
    29     """Check that the http cache logiac work as expected