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

17 lines
518 B
Python

from twisted.trial import unittest
from foolscap.eventual import fireEventually, flushEventualQueue
from allmydata import introducer_and_vdrive
from allmydata.util import testutil
class Basic(testutil.SignalMixin, unittest.TestCase):
def test_loadable(self):
q = introducer_and_vdrive.IntroducerAndVdrive()
d = fireEventually(None)
d.addCallback(lambda res: q.startService())
d.addCallback(lambda res: q.stopService())
d.addCallback(flushEventualQueue)
return d