def __init__(self, hosts=[{"name": "test", "weight": 1}]):
        self.hosts = []
        self.conf = {}
        for host in hosts:
            if host["name"] == "test":
                uri = "test:///default"
            else:
                uri = self.uri(host["name"])
            conn = libvirt.open(uri)
            weight = 1
            if "weight" is host:
                weight = host["weight"]
            self.hosts.append({"name": host[
                              "name"], "conn": conn, "weight": host["weight"]})
dataset/ETHPy150Open mizzy/maglica/maglica/virt.py/Virt.__init__/operator `in` -> `is`