test/no_network: new test harness, like system-test but doesn't use the network so it's faster

This commit is contained in:
Brian Warner
2009-02-16 14:58:44 -07:00
parent 8ff76c6269
commit ebe0f2ac08
3 changed files with 202 additions and 0 deletions

View File

@ -195,6 +195,9 @@ class Client(node.Node, pollmixin.PollMixin):
self.download_cache = cachedir.CacheDirectoryManager(download_cachedir)
self.download_cache.setServiceParent(self)
self.add_service(Downloader(self.stats_provider))
self.init_stub_client()
def init_stub_client(self):
def _publish(res):
# we publish an empty object so that the introducer can count how
# many clients are connected and see what versions they're