mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-26 08:01:06 +00:00
17 lines
518 B
Python
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
|
|
|