def test_user_password_update(self): """ Test if it update a user's password (keystone user-password-update) """ self.assertDictEqual(keystone.user_password_update(), {"Error": "Unable to resolve user id"}) self.assertEqual(keystone.user_password_update("nova"), "Password updated for user ID nova")
def test_user_password_update(self, mock): ''' Test if it update a user's password (keystone user-password-update) ''' self.assertDictEqual(keystone.user_password_update(), {'Error': 'Unable to resolve user id'}) self.assertEqual(keystone.user_password_update('nova'), 'Password updated for user ID nova')
def test_user_password_update(self, mock): ''' Test if it update a user's password (keystone user-password-update) ''' self.assertDictEqual(keystone.user_password_update(), {'Error': 'Unable to resolve user id'}) self.assertEqual(keystone.user_password_update('nova'), 'Password updated for user ID nova')