]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix test_errors to check for exception message associated with
authorDavid Stainton <dstainton415@gmail.com>
Mon, 13 Jul 2015 19:59:31 +0000 (12:59 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 20 Jul 2015 23:48:10 +0000 (00:48 +0100)
an invalid collective dircap.

src/allmydata/test/test_magic_folder.py

index 303e5b5cab23a3bf8e6a0e1d4122200b8eb4b8f2..0a8ac9fc03ac1e3fed2590a7020f72c0646cb6d8 100644 (file)
@@ -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():