assert redis.ping() == "PONG"
Send a ping to the server and get a response if the server is alive.
PONG
Was this page helpful?