2006-11-30 23:23:01 +00:00
|
|
|
|
|
|
|
from twisted.trial import unittest
|
2007-04-04 23:09:13 +00:00
|
|
|
from foolscap.eventual import flushEventualQueue
|
2006-11-30 23:23:01 +00:00
|
|
|
|
2007-04-30 16:57:52 +00:00
|
|
|
from allmydata import introducer_and_vdrive
|
2007-04-24 04:15:02 +00:00
|
|
|
from allmydata.util import testutil
|
2006-11-30 23:23:01 +00:00
|
|
|
|
2007-04-24 04:15:02 +00:00
|
|
|
class Basic(testutil.SignalMixin, unittest.TestCase):
|
2006-12-01 03:20:00 +00:00
|
|
|
def test_loadable(self):
|
2007-04-30 16:57:52 +00:00
|
|
|
q = introducer_and_vdrive.IntroducerAndVdrive()
|
2007-03-08 22:10:36 +00:00
|
|
|
d = q.startService()
|
|
|
|
d.addCallback(lambda res: q.stopService())
|
2007-04-04 23:09:13 +00:00
|
|
|
d.addCallback(flushEventualQueue)
|
2007-03-08 22:10:36 +00:00
|
|
|
return d
|
|
|
|
|