#NEWLINE# def _update_port_status( self , port , status ) : #NEWLINE# #INDENT# network_id = port [ 'port' ] [ 'network_id' ] #NEWLINE# some_network = { #NEWLINE# #INDENT# 'id' : network_id , #NEWLINE# #UNINDENT# } #NEWLINE# self . plugin . get_network = mock . Mock ( return_value = some_network ) #NEWLINE# self . plugin . update_port_status ( self . ctxt , port [ 'port' ] [ 'id' ] , self , TESTHOST )