#NEWLINE# def test_get_instance_ip( self ) : #NEWLINE# #INDENT# ctx = self . _get_context ( ) #NEWLINE# ip_1 = ctx . get_instance_ip ( yarn . RESOURCE_MANAGER ) #NEWLINE# self . assertEqual ( INTERNAL_IP , ip_1 ) #NEWLINE# ip_2 = ctx . get_instance_ip ( yarn . RESOURCE_MANAGER . ui_name ) #NEWLINE# self . assertEqual ( INTERNAL_IP , ip_2 ) #NEWLINE# none_ip = ctx . get_instance_ip ( self . fake_np ) #NEWLINE# self . assertIsNone ( ip_1 )