import org import java alph = org.nongnu.alph storm = org.nongnu.storm string = """Where Alph, the sacred river, ran Through caverns measureless to man """ def testText(): pool = storm.impl.TransientPool(java.util.HashSet()) salph = alph.impl.StormAlph(pool) file = java.io.File.createTempFile("stormtest","txt", java.io.File(".")) f = open(file.getPath(), "w") f.write(string) f.close() id = salph.addFile(file, "text/plain; charset=UTF8") sb = salph.getScrollBlock(id) assert teststring == sb.getCurrent().getText()