From: Daira Hopwood Date: Tue, 21 Apr 2015 22:54:25 +0000 (+0100) Subject: Avoid shadowing a method name. X-Git-Url: https://git.rkrishnan.org/about.html?a=commitdiff_plain;h=c234a94f8631dac0639e16c96d8d07317d192885;p=tahoe-lafs%2Ftahoe-lafs.git Avoid shadowing a method name. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index 995890bb..60287194 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -275,7 +275,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() @@ -292,7 +292,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):