#NEWLINE# def _test_update_port_binding_profile( self , profile ) : #NEWLINE# #INDENT# profile_arg = { #NEWLINE# #INDENT# portbindings . PROFILE : profile , #NEWLINE# #UNINDENT# } #NEWLINE# with self . port ( ) as port : #NEWLINE# #INDENT# self . _check_port_binding_profile ( port [ 'port' ] ) #NEWLINE# port_id = port [ 'port' ] [ 'id' ] #NEWLINE# ctx = context . get_admin_context ( ) #NEWLINE# port = self . _update ( 'ports' , port_id , { #NEWLINE# #INDENT# 'port' : profile_arg , #NEWLINE# #UNINDENT# } , neutron_context = ctx ) [ 'port' ] #NEWLINE# self . _check_port_binding_profile ( port , profile ) #NEWLINE# port = self . _show ( 'ports' , port_id ) [ 'port' ] #NEWLINE# self . _check_port_binding_profile ( port , profile )