def METHOD_NAME():
    import bsddb
    db = bsddb.btopen("bsddb.db", "c")
    db["key1"] = "value1"
    db["key2"] = "value2"
    db.close()
    db = bsddb.btopen("bsddb.db", "r")
    if len(db) != 2:
        raise Exception("Wrong length")
    if db["key1"] != "value1":
        raise Exception("value1 incorrect {}".format(db["key1"]))
    if db["key2"] != "value2":
        raise Exception("value2 incorrect {}".format(db["key2"]))