174 |
|
|
175 |
newIds = HashSet(pool.getIds()) |
newIds = HashSet(pool.getIds()) |
176 |
|
|
177 |
|
pool.get(bos.getBlockId()) |
178 |
|
|
179 |
assert oldIds != newIds |
assert oldIds != newIds |
180 |
assert newIds.contains(bos.getBlockId()) |
assert newIds.contains(bos.getBlockId()) |
181 |
|
|
200 |
except FileNotFoundException: pass |
except FileNotFoundException: pass |
201 |
else: assert 0 |
else: assert 0 |
202 |
|
|
203 |
|
def testFoo(): |
204 |
|
bos = pool.getBlockOutputStream("text/plain") |
205 |
|
osw = OutputStreamWriter(bos) |
206 |
|
osw.write("Hallo, Welt!") |
207 |
|
osw.close() |
208 |
|
bos.close() |
209 |
|
|
210 |
|
pool.get(bos.getBlockId()) |
211 |
|
|
212 |
def testBlockId(): |
def testBlockId(): |
213 |
""" |
""" |