From 56cb87f4b5eade0a16ffc8b0478547a9d17cb6d6 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 2 Nov 2015 22:12:09 +0000 Subject: [PATCH] Fix test_errors. Signed-off-by: Daira Hopwood --- src/allmydata/test/test_magic_folder.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(): -- 2.45.2