#NEWLINE# @ urlmatch ( netloc = '.*' ) #NEWLINE# def wms_mock( url , request ) : #NEWLINE# #INDENT# pluginTestDir = os . path . dirname ( os . path . realpath ( __file__ ) ) #NEWLINE# filepath = os . path . join ( pluginTestDir , 'data' , 'wms_capabilities.xml.gz' ) #NEWLINE# with gzip . open ( filepath , 'rb' ) as bsve_search_file : #NEWLINE# #INDENT# content = bsve_search_file . read ( ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'content-length' : len ( content ) , #NEWLINE# 'content-type' : 'application/xml' , #NEWLINE# #UNINDENT# } #NEWLINE# return httmockresponse ( 200 , content , headers , request = request )