def connect(self, **kwargs: t.Any) -> http.client.HTTPConnection:
        """Create a connection to the server, without sending a request.
        Useful if a test requires lower level methods to try something that
        ``HTTPClient.request`` will not do.

        If the server's scheme is HTTPS and the TLS ``context`` argument is not
        given, a default permissive context is used.

        :param kwargs: Arguments to :class:`http.client.HTTPConnection`.
        """
        if self.scheme == "https":
            if "context" not in kwargs:
                context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
                context.check_hostname = False
                context.verify_mode = ssl.CERT_NONE
                kwargs["context"] = context

            return http.client.HTTPSConnection(self.addr, **kwargs)

        if self.scheme == "unix":
            return UnixSocketHTTPConnection(self.addr, **kwargs)

        return http.client.HTTPConnection(self.addr, **kwargs)
Create a connection to the server, without sending a request.
        Useful if a test requires lower level methods to try something that
        ``HTTPClient.request`` will not do.

        If the server's scheme is HTTPS and the TLS ``context`` argument is not
        given, a default permissive context is used.

        :param kwargs: Arguments to :class:`http.client.HTTPConnection`.
        
tests/conftest.py