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/class-simplejson.JSONEncoder-index.html?a=commitdiff_plain;h=cf1a9b8aa969f50c9b64a7bfa4834130796974a3;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():