]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_web.py: minor cleanup to test_helper_status.
authorDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Sat, 29 Dec 2012 23:44:11 +0000 (23:44 +0000)
committerDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Sat, 29 Dec 2012 23:44:11 +0000 (23:44 +0000)
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
src/allmydata/test/test_web.py

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