#NEWLINE# def test_advertise_address_provided( self , mock_exec , mock_gethostbyname ) : #NEWLINE# #INDENT# self . agent . advertise_address = ( '1.2.3.4' , 9990 ) #NEWLINE# self . agent . set_agent_advertise_addr ( ) #NEWLINE# self . assertEqual ( ( '1.2.3.4' , 9990 ) , self . agent . advertise_address ) #NEWLINE# self . assertFalse ( mock_gethostbyname . called ) #NEWLINE# self . assertFalse ( mock_gethostbyname . called )