#NEWLINE# def test_delete_ha_interfaces_from_agent( self ) : #NEWLINE# #INDENT# ( router , agents ) = self . _setup_ha_router ( ) #NEWLINE# agent = agents . pop ( ) #NEWLINE# self . plugin . remove_router_from_l3_agent ( self . adminContext , session . id , router [ 'id' ] ) #NEWLINE# session = self . adminContext . session #NEWLINE# db = l3_hamode_db . L3HARouterAgentPortBinding #NEWLINE# results = session . query ( db ) . filter_by ( router_id = router [ 'id' ] ) #NEWLINE# results = [ binding . l3_agent_id for binding in results . all ( ) ] #NEWLINE# self . assertNotIn ( agent . id , results )