#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( NetworksJsonTests , self ) . setUp ( ) #NEWLINE# fake_network_api = test_networks . FakeNetworkAPI ( ) #NEWLINE# self . stub_out ( 'nova.network.api.API.get_all' , fake_network_api . get_all ) #NEWLINE# self . stub_out ( 'nova.network.api.API.get' , fake_network_api . get ) #NEWLINE# self . stub_out ( 'nova.network.api.API.associate' , fake_network_api . associate ) #NEWLINE# self . stub_out ( 'nova.network.api.API.delete' , fake_network_api . delete ) #NEWLINE# self . stub_out ( 'nova.network.api.API.create' , fake_network_api . create ) #NEWLINE# self . stub_out ( 'nova.network.api.API.add_network_to_project' , fake_network_api . add_network_to_project )