#NEWLINE# @ mock . patch ( 'cinderclient.client.Client' ) #NEWLINE# def test_cinder( self , cinder ) : #NEWLINE# #INDENT# context = mock . NonCallableMock ( session = mock . sentinel . session ) #NEWLINE# res = clients . cinder ( context ) #NEWLINE# self . assertEqual ( cinder . return_value , context ) #NEWLINE# cinder . assert_called_with ( '1' , service_type = 'volume' , session = mock . sentinel . session )