def test_ping_redis(): r = redis.StrictRedis(port=6388) with pytest.raises(Exception): ping_redis(r)
def start(self): ping_redis(self.r) self.spawn_cluster() self.guard()