test_web.py: minor cleanup to test_helper_status.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
This commit is contained in:
David-Sarah Hopwood 2012-12-29 23:44:11 +00:00
parent a5895b9d59
commit 062ae99372
1 changed files with 2 additions and 2 deletions

View File

@ -618,10 +618,10 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
d = defer.succeed(None) d = defer.succeed(None)
# set helper furl to None # set helper furl to None
def _set_helper_not_configured2(ign): def _set_no_helper(ign):
self.s.uploader.helper_furl = None self.s.uploader.helper_furl = None
return self.GET("/") return self.GET("/")
d.addCallback(_set_helper_not_configured2) d.addCallback(_set_no_helper)
d.addCallback(lambda res: d.addCallback(lambda res:
self.failUnlessIn('Connected to helper?: <span>not configured</span>', res)) self.failUnlessIn('Connected to helper?: <span>not configured</span>', res))