self.failUnless(expected in page,
"I didn't see the right 'My nodeid' message "
"in: %s" % page)
+ self.failUnless("Helper: 0 active uploads" in page)
d.addCallback(_got_welcome)
d.addCallback(self.log, "done with _got_welcome")
def _got_welcome_helper(page):
self.failUnless("Connected to helper?: <span>yes</span>" in page,
page)
+ self.failUnless("Not running helper" in page)
d.addCallback(_got_welcome_helper)
d.addCallback(lambda res: getPage(base + public))
try:
h = client.getServiceNamed("helper")
stats = h.get_stats()
- active_uploads = stats["helper"]["CHK_active_uploads"]
+ active_uploads = stats["chk_upload_helper.active_uploads"]
ul[T.li["Helper: %d active uploads" % (active_uploads,)]]
except KeyError:
ul[T.li["Not running helper"]]