def _openRepository(self, idx, serverName="localhost"):
        # this could be left open from a previoius testsuite running
        label = versions.Label("%s@foo:bar" % serverName)
        self.servers.stopServer(idx)
        repo = self.openRepository(idx, serverName=[serverName])
        self.resetRepository(idx)
        self.addUserAndRole(repo, label, "user", "pass")
        repo.addAcl(label, "user", None, None, write=True, remove=True)
        return repo
dataset/ETHPy150Open sassoftware/conary/conary_test/queryreptest.py/MultiRepQueryTest._openRepository/original