#NEWLINE# def test_update_port_binding_no_binding( self ) : #NEWLINE# #INDENT# ctx = context . get_admin_context ( ) #NEWLINE# with self . port ( name = 'name' ) as port : #NEWLINE# #INDENT# ctx . session . query ( ml2_models . PortBinding ) . filter_by ( port_id = port [ 'port' ] [ 'id' ] ) . delete ( ) #NEWLINE# self . assertIsNone ( self . plugin . get_bound_port_context ( ctx , port [ 'port' ] [ 'id' ] ) )