From: Daira Hopwood Date: Mon, 2 Nov 2015 22:12:09 +0000 (+0000) Subject: Fix test_errors. X-Git-Url: https://git.rkrishnan.org/components/%22news.html/configuration.txt?a=commitdiff_plain;h=56cb87f4b5eade0a16ffc8b0478547a9d17cb6d6;p=tahoe-lafs%2Ftahoe-lafs.git Fix test_errors. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 32c5c4ec..08cebd76 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -905,9 +905,8 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase): self.shouldFail(AssertionError, 'non-directory upload.dircap', 'does not refer to a directory', MagicFolder, client, 'URI:LIT:foo', '', errors_dir, magicfolderdb) self.shouldFail(AssertionError, 'readonly upload.dircap', 'is not a writecap to a directory', - MagicFolder, client, readonly_dircap, '', errors_dir, magicfolderdb,) - self.shouldFail(AssertionError, 'collective dircap', - "The URI in '%s' is not a readonly cap to a directory." % os.path.join('private', 'collective_dircap'), + MagicFolder, client, readonly_dircap, '', errors_dir, magicfolderdb) + self.shouldFail(AssertionError, 'collective dircap', 'is not a readonly cap to a directory', MagicFolder, client, upload_dircap, upload_dircap, errors_dir, magicfolderdb) def _not_implemented():