#NEWLINE# def test_latent_expose_headers( self ) : #NEWLINE# #INDENT# 'Assert that latent HTTP headers are exposed.' #NEWLINE# self . application . set_latent ( allow_headers = None , expose_headers = [ 'X-Server-Generated-Response' ] , allow_methods = None ) #NEWLINE# request = webob . Request . blank ( '/' ) #NEWLINE# request . method = 'GET' #NEWLINE# request . headers [ 'Origin' ] = 'http://default.example.com' #NEWLINE# response = request . get_response ( self . application ) #NEWLINE# self . assertCORSResponse ( response , status = '200 OK' , allow_origin = 'http://default.example.com' , max_age = None , allow_methods = None , allow_headers = None , allow_credentials = 'true' , expose_headers = 'X-Configured,X-Server-Generated-Response' , has_content_type = True )