]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Avoid shadowing a method name.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 21 Apr 2015 22:54:25 +0000 (23:54 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:46:48 +0000 (19:46 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_drop_upload.py

index 77711e441b35b92c85cfb09acdfd9f44b1d91a59..5e9c2a765dbed4642e0668186d66fb9984ab5195 100644 (file)
@@ -276,7 +276,7 @@ class MockTest(DropUploadTestMixin, unittest.TestCase):
 
         client = self.g.clients[0]
         d = client.create_dirnode()
-        def _made_upload_dir(n):
+        def _check_errors(n):
             self.failUnless(IDirectoryNode.providedBy(n))
             upload_dircap = n.get_uri()
             readonly_dircap = n.get_readonly_uri()
@@ -295,7 +295,7 @@ class MockTest(DropUploadTestMixin, unittest.TestCase):
                             DropUploader, client, 'URI:LIT:foo', errors_dir, 'magicfolderdb', inotify=fake_inotify)
             self.shouldFail(AssertionError, 'readonly upload.dircap', 'is not a writecap to a directory',
                             DropUploader, client, readonly_dircap, errors_dir, 'magicfolderdb', inotify=fake_inotify)
-        d.addCallback(_made_upload_dir)
+        d.addCallback(_check_errors)
         return d
 
     def test_drop_upload(self):