#NEWLINE# @ mock . patch . object ( keystone . api , 'keystone' ) #NEWLINE# def test_user_delete( self , kc ) : #NEWLINE# #INDENT# request = self . mock_rest_request ( ) #NEWLINE# response = keystone . User ( ) . delete ( request , 'the_id' ) #NEWLINE# self . assertStatusCode ( response , 204 ) #NEWLINE# self . assertEqual ( response . content , b'' ) #NEWLINE# kc . user_delete . assert_called_once_with ( request , 'the_id' )