def getHTTPProxy(self, idx = 0, path = None):
        if path:
            cProxyDir = path
        else:
            cProxyDir = os.path.join(self.tmpDir, "http-proxy")
            if idx:
                cProxyDir += "-%s" % str(idx)

        h = HTTPProxy(cProxyDir)
        if h.start():
            return h
        else:
            raise testhelp.SkipTestException("Squid is not installed")
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.getHTTPProxy/original