#NEWLINE# def test_network_update( self ) : #NEWLINE# #INDENT# updated_network = { #NEWLINE# #INDENT# 'id' : NETWORK_ID , #NEWLINE# #UNINDENT# } #NEWLINE# self . lb_rpc . agent . network_ports = { #NEWLINE# #INDENT# NETWORK_ID : [ PORT_DATA ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . lb_rpc . network_update ( context = None , network = updated_network ) #NEWLINE# self . assertEqual ( set ( [ DEVICE_1 ] ) , self . lb_rpc . updated_devices )