62 |
assert sb.getCurrent().length() == 2 |
assert sb.getCurrent().length() == 2 |
63 |
|
|
64 |
def testDirPool(): |
def testDirPool(): |
65 |
pool = storm.impl.DirPool(java.io.File('testdata'), java.util.HashSet()) |
directory = org.nongnu.storm.util.TempFileUtil.tmpFile(java.io.File(".")) |
66 |
myalph = alph.impl.StormAlph(pool) |
directory.mkdir() |
67 |
|
|
68 |
myalph.addFile(java.io.File('./testdata/test1.pdf'), 'application/pdf') |
try: |
69 |
|
pool = storm.impl.DirPool(directory, java.util.HashSet()) |
70 |
|
myalph = alph.impl.StormAlph(pool) |
71 |
|
|
72 |
|
myalph.addFile(java.io.File('./testdata/test1.pdf'), 'application/pdf') |
73 |
|
finally: |
74 |
|
org.nongnu.storm.util.TempFileUtil.deltree(directory) |