#NEWLINE# def test_add_ha_interface_to_l3_agent( self ) : #NEWLINE# #INDENT# agent = self . plugin . get_agents_db ( self . adminContext ) [ 0 ] #NEWLINE# router = self . _create_ha_router ( ) #NEWLINE# self . plugin . add_router_to_l3_agent ( self . adminContext , router . id , router [ 'id' ] ) #NEWLINE# ha_ports = self . plugin . get_ha_router_port_bindings ( self . adminContext , [ router [ 'id' ] ] ) #NEWLINE# self . assertIn ( agent . id , [ ha_port . l3_agent_id for ha_port in ha_ports ] )