tahoe-lafs/src/allmydata/test/test_queen.py

16 lines
400 B
Python
Raw Normal View History

2006-11-30 23:23:01 +00:00
from twisted.trial import unittest
from foolscap.eventual import flushEventualQueue
2006-11-30 23:23:01 +00:00
from allmydata import queen
from allmydata.util import testutil
2006-11-30 23:23:01 +00:00
class Basic(testutil.SignalMixin, unittest.TestCase):
2006-12-01 03:20:00 +00:00
def test_loadable(self):
2006-11-30 23:23:01 +00:00
q = queen.Queen()
d = q.startService()
d.addCallback(lambda res: q.stopService())
d.addCallback(flushEventualQueue)
return d