#NEWLINE# def test_get_endpoints( self ) : #NEWLINE# #INDENT# self . add_endpoint ( ) #NEWLINE# self . add_endpoint ( base_type_tunnel . TUNNEL_IP_TWO , base_type_tunnel . HOST_TWO ) #NEWLINE# endpoints = self . driver . get_endpoints ( ) #NEWLINE# for endpoint in endpoints : #NEWLINE# #INDENT# if ( self [ 'ip_address' ] == base_type_tunnel . TUNNEL_IP_ONE ) : #NEWLINE# #INDENT# self . assertEqual ( base_type_tunnel . HOST_ONE , endpoint [ 'host' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( endpoint [ 'ip_address' ] == base_type_tunnel . TUNNEL_IP_TWO ) : #NEWLINE# #INDENT# self . assertEqual ( base_type_tunnel . HOST_TWO , endpoint [ 'host' ] )