#NEWLINE# def test_optional_max_age( self ) : #NEWLINE# #INDENT# 'CORS Specification Section 6.2.8\n\n        Optionally add a single Access-Control-Max-Age header with as value\n        the amount of seconds the user agent is allowed to cache the result of\n        the request.\n        ' #NEWLINE# request = webob . Request . blank ( '/' ) #NEWLINE# request . method = 'OPTIONS' #NEWLINE# request . headers [ 'Origin' ] = 'http://cached.example.com' #NEWLINE# request . headers [ 'Access-Control-Request-Method' ] = 'GET' #NEWLINE# response = request . get_response ( self . application ) #NEWLINE# self . assertCORSResponse ( response , status = '200 OK' , allow_origin = 'http://cached.example.com' , max_age = 3600 , allow_methods = 'GET' , allow_headers = None , allow_credentials = None , expose_headers = None )