From: David Stainton <dstainton415@gmail.com>
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/%5D%20/uri/%22news.html/provisioning?a=commitdiff_plain;h=c811df950f5ad624b889382e04d6653555fdd88d;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():