def __init__(self, context, region, logname=None, nolog=False,
            clean=False):
        self.context = context
        self.region = region
        self.clean = clean
        self.failures = []
        self.cleanup_items = []
        self.smoke_server = None
        self.smoke_volume = None
        self.smoke_snapshot = None
        logname = "%s-%s" % (logname or "smoketest", self.region)
        self.log = logging.getLogger(logname)
        if nolog:
            handler = logging.NullHandler()
        else:
            handler = logging.FileHandler(filename=logname, mode="w",
                    encoding="utf-8")
            formatter = logging.Formatter("%(asctime)s - %(message)s")
            handler.setFormatter(formatter)
        self.log.addHandler(handler)
        self.log.setLevel(logging.DEBUG)
        self.cs = self.context.get_client("cloudservers", self.region)
        self.cf = self.context.get_client("cloudfiles", self.region)
        self.cbs = self.context.get_client("cloud_blockstorage", self.region)
        self.cdb = self.context.get_client("cloud_databases", self.region)
        self.clb = self.context.get_client("cloud_loadbalancers", self.region)
        self.dns = self.context.get_client("cloud_dns", self.region)
        self.cnw = self.context.get_client("cloud_networks", self.region)
        self.cmn = self.context.get_client("cloud_monitoring", self.region)
        self.au = self.context.get_client("autoscale", self.region)
        self.pq = self.context.get_client("queues", self.region)
        self.services = ({"service": self.cs, "name": "Cloud Servers"},
                {"service": self.cf, "name": "Cloud Files"},
                {"service": self.cbs, "name": "Cloud Block Storage"},
                {"service": self.cdb, "name": "Cloud Databases"},
                {"service": self.clb, "name": "Cloud Load Balancers"},
                {"service": self.dns, "name": "Cloud DNS"},
                {"service": self.cnw, "name": "Cloud Networks"},
                {"service": self.cmn, "name": "Cloud Monitoring"},
                {"service": self.au, "name": "Auto Scale"},
                {"service": self.pq, "name": "Cloud Queues"},
                )
dataset/ETHPy150Open rackspace/pyrax/tests/integrated/smoketest.py/SmokeTester.__init__/original