#NEWLINE# @ patch . object ( Collector , 'publish' ) #NEWLINE# def test_url_with_port( self , publish_mock ) : #NEWLINE# #INDENT# self . setUp ( config = { #NEWLINE# #INDENT# 'urls' : 'localhost http://localhost:80/server-status?auto' , #NEWLINE# #UNINDENT# } ) #NEWLINE# expected_urls = { #NEWLINE# #INDENT# 'localhost' : 'http://localhost:80/server-status?auto' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( self . collector . urls , publish_mock )