def _getConnection(): url = random.choice(DEFAULT_URLS) return scalaris.JSONConnection(url = url)
def testTransactionSingleOp2(self): conn = TransactionSingleOp(conn=scalaris.JSONConnection( url=scalaris.DEFAULT_URL)) conn.close_connection()
def testReplicatedDHT2(self): rdht = ReplicatedDHT(conn=scalaris.JSONConnection( url=scalaris.DEFAULT_URL)) rdht.close_connection()
def testScalarisVM2(self): rdht = ScalarisVM(conn=scalaris.JSONConnection( url=scalaris.DEFAULT_URL)) rdht.close_connection()
def testTransaction3(self): t = Transaction(conn=scalaris.JSONConnection(url=scalaris.DEFAULT_URL)) t.close_connection()