class_docstr: Tests for SSL connections
  
  This relies on the --redis-ssl-url purely for rebuilding the client
  and connecting to the appropriate port.
code: def test_validating_self_signed_string_certificate(self, request):
      with open(self.SERVER_CERT) as f:
          cert_data = f.read()
      ssl_url = request.config.option.redis_ssl_url
      p = urlparse(ssl_url)[1].split(":")
      r = redis.Redis(
          host=p[0],
          port=p[1],
          ssl=True,
          ssl_certfile=self.SERVER_CERT,
          ssl_keyfile=self.SERVER_KEY,
          ssl_cert_reqs="required",
          ssl_ca_data=cert_data,
      )
      assert r.ping()
  
imports: import socket
  import ssl
  from urllib.parse import urlparse
  import pytest
  import redis
  from redis.exceptions import ConnectionError, RedisError
  from .conftest import skip_if_cryptography, skip_if_nocryptography
  from .ssl_utils import get_ssl_filename
label_desc: Use image node_id 5 for calling the TestSSL obj's underlying member method code with example usage: obj.test_validating_self_signed_string_certificate(request) without return types