#NEWLINE# def test_revoke_user_access( self ) : #NEWLINE# #INDENT# inst = self . instance #NEWLINE# fakeuser = utils . random_ascii ( ) #NEWLINE# dbname1 = utils . random_ascii ( ) #NEWLINE# inst . _user_manager . api . method_delete = Mock ( return_value = ( None , None ) ) #NEWLINE# inst . revoke_user_access ( fakeuser , dbname1 , strict = False ) #NEWLINE# inst . _user_manager . api . method_delete . assert_called_once_with ( ( '/None/%s/databases/%s' % ( fakeuser , dbname1 ) ) )