#NEWLINE# @ mock . patch ( 'neutronclient.v2_0.client.Client' ) #NEWLINE# def test_neutron( self , neutron ) : #NEWLINE# #INDENT# context = mock . NonCallableMock ( session = mock . sentinel . session ) #NEWLINE# res = clients . neutron ( context ) #NEWLINE# self . assertEqual ( neutron . return_value , res ) #NEWLINE# neutron . assert_called_with ( service_type = 'network' , session = mock . sentinel . session )