def pykt_gets(): db = kt1() db.open() for i in xrange(10): ret = db.get(key) assert ret == val db.close()
def pykt_increment(): db = kt1() db.open() ret = db.increment("N", 1) db.close()
def pykt_get(): db = kt1() db.open() ret = db.get(key) assert ret == val db.close()
def pykt_append(): db = kt1() db.open() ret = db.append(key, val) assert ret == True db.close()
def pykt_replace(): db = kt1() db.open() ret = db.replace(key, val) assert ret == True db.close()
def pykt_set(): db = kt1() db.open() ret = db.set(key, val) assert ret == True db.close()