def test_ramstorage(): from whoosh.filedb.filestore import RamStorage st = RamStorage() lock = st.lock("test") lock.acquire() lock.release()