#NEWLINE# def _mock_client_delete_token( self , user , token , url = None ) : #NEWLINE# #INDENT# if ( not url ) : #NEWLINE# #INDENT# url = settings . OPENSTACK_KEYSTONE_URL #NEWLINE# #UNINDENT# plugin = token_endpoint . Token ( endpoint = url , token = self . data . unscoped_access_info . auth_token ) #NEWLINE# client = self . ks_client_module . Client ( session = mox . IsA ( session . Session ) , auth = plugin ) #NEWLINE# client . tokens = self . mox . CreateMockAnything ( ) #NEWLINE# client . tokens . delete ( token = token ) #NEWLINE# return client