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/%5B/frontends/%22news.html/%22doc.html/index.php?a=commitdiff_plain;h=3fb841adc44887e027568141ebae5d1a1b989360;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():