def connect(self, address):
            self._closed = False

            try:
                self._address = (self._host, self._port) = address
            except __HOLE__:
                # We get here when the address is just a string pointing to a
                # unix socket path/file
                #
                # See issue #206
                self.is_http = False
            else:
                ports_to_check = (
                    POTENTIAL_HTTP_PORTS.union(POTENTIAL_HTTPS_PORTS))
                self.is_http = self._port in ports_to_check

            if not self.is_http:
                if self.truesock:
                    self.truesock.connect(self._address)
                else:
                    raise UnmockedError()
dataset/ETHPy150Open gabrielfalcao/HTTPretty/httpretty/core.py/fakesock.socket.connect