#NEWLINE# def test__unbind_router_removes_binding( self ) : #NEWLINE# #INDENT# agent_id = self . agent_id1 #NEWLINE# agent = self . agent1 #NEWLINE# router = self . _make_router ( self . fmt , tenant_id = str ( uuid . uuid4 ( ) ) , name = 'r1' ) #NEWLINE# self . _test_schedule_bind_router ( agent , router ) #NEWLINE# self . _unbind_router ( self . adminContext , router [ 'router' ] [ 'id' ] , agent_id ) #NEWLINE# bindings = self . _get_l3_bindings_hosting_routers ( self . adminContext , [ router [ 'router' ] [ 'id' ] ] ) #NEWLINE# self . assertEqual ( 0 , len ( bindings ) )