mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
workqueue: more tests
This commit is contained in:
parent
d61c0a6ef6
commit
aad0a9dfac
@ -147,11 +147,17 @@ class Items(unittest.TestCase):
|
||||
f.write("stuff")
|
||||
f.close()
|
||||
self.failUnless(os.path.exists(tmpfilename))
|
||||
# likewise this unreferenced box should get deleted
|
||||
boxname = wq.create_boxname()
|
||||
wq.write_to_box(boxname, "contents of box")
|
||||
boxfile = os.path.join(wq.boxesdir, boxname)
|
||||
self.failUnless(os.path.exists(boxfile))
|
||||
|
||||
d = wq.run_all_steps()
|
||||
def _check(res):
|
||||
self.failUnlessEqual(len(wq.dispatched_steps), 5)
|
||||
self.failUnlessEqual(wq.dispatched_steps[0][0], "upload_chk")
|
||||
self.failIf(os.path.exists(tmpfilename))
|
||||
self.failIf(os.path.exists(boxfile))
|
||||
d.addCallback(_check)
|
||||
return d
|
||||
|
Loading…
x
Reference in New Issue
Block a user