# Pastebin t98QLGyL # update user to explicitly have the expiry option to False user['options'][ iro.IGNORE_PASSWORD_EXPIRY_OPT.option_name] = False user = self.identity_api.update_user(user['id'], user) self.assertRaises(exception.PasswordExpired, self.identity_api.authenticate, self.make_request(), user_id=user['id'], password=self.password)