#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( NetworksAssociateJsonTests , self ) . setUp ( ) #NEWLINE# def fake_associate( self , context , network_id , host = NetworksAssociateJsonTests . _sentinel , project = NetworksAssociateJsonTests . _sentinel ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# self . stub_out ( 'nova.network.api.API.associate' , fake_associate )