#NEWLINE# def test_network_associate_with_host( self ) : #NEWLINE# #INDENT# uuid = FAKE_NETWORKS [ 1 ] [ 'uuid' ] #NEWLINE# res = self . associate_controller . _associate_host ( self . req , uuid , body = { #NEWLINE# #INDENT# 'associate_host' : 'TestHost' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . _check_status ( res , self . associate_controller . _associate_host , 202 ) #NEWLINE# res_dict = self . controller . show ( self . admin_req , uuid ) #NEWLINE# self . assertEqual ( res_dict [ 'network' ] [ 'host' ] , 'TestHost' )