def kyoto_gets(): db = kt2() db.open() for i in xrange(10): ret = db.get(key) assert ret == val db.close()
def kyoto_increment(): db = kt2() db.open() ret = db.increment("N", 1) db.close()
def kyoto_append(): db = kt2() db.open() ret = db.append(key, val) assert ret == True db.close()
def kyoto_get(): db = kt2() db.open() ret = db.get(key) assert ret == val db.close()
def kyoto_set(): db = kt2() db.open() ret = db.set(key, val) assert ret == True db.close()