#NEWLINE# def test_opt_url_netloc( self ) : #NEWLINE# #INDENT# ' test the replace of net loc ' #NEWLINE# ( req , _ ) = app . op [ 'getPetById' ] ( petId = 100 ) #NEWLINE# req . prepare ( ) #NEWLINE# req . _patch ( { #NEWLINE# #INDENT# SwaggerRequest . opt_url_netloc : 'localhost:9001' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( _ . url , 'http://localhost:9001/api/pet/100' ) #NEWLINE# self . assertEqual ( req . path , '/api/pet/100' )