From: David Stainton Date: Mon, 13 Jul 2015 19:59:31 +0000 (-0700) Subject: Fix test_errors to check for exception message associated with X-Git-Url: https://git.rkrishnan.org/pf/content/en/vdrive?a=commitdiff_plain;h=565867032b7336834cf3f171941161bc9d3b2b6d;p=tahoe-lafs%2Ftahoe-lafs.git Fix test_errors to check for exception message associated with an invalid collective dircap. --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 303e5b5c..0a8ac9fc 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -409,7 +409,8 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase): MagicFolder, client, 'bad', '', errors_dir, magicfolderdb, inotify=fake_inotify) self.shouldFail(AssertionError, 'non-directory upload.dircap', 'does not refer to a directory', MagicFolder, client, 'URI:LIT:foo', '', errors_dir, magicfolderdb, inotify=fake_inotify) - self.shouldFail(AssertionError, 'readonly upload.dircap', 'is not a writecap to a directory', + self.shouldFail(AssertionError, 'readonly upload.dircap', + '\"The URI in \'private/collective_dircap\' does not refer to a directory.\"', MagicFolder, client, readonly_dircap, '', errors_dir, magicfolderdb, inotify=fake_inotify) def _not_implemented():