From: Daira Hopwood Date: Thu, 21 May 2015 14:44:31 +0000 (+0100) Subject: drop-upload: add unsupported platform test. X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=efbdceda3e578815a00ceff06e33d83ac64f6303;p=tahoe-lafs%2Ftahoe-lafs.git drop-upload: add unsupported platform test. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index fbf34cdf..1ac90545 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -359,6 +359,12 @@ class MockTest(DropUploadTestMixin, unittest.TestCase): DropUploader, client, 'URI:LIT:foo', errors_dir, magicfolderdb, inotify=fake_inotify) self.shouldFail(AssertionError, 'readonly upload.dircap', 'is not a writecap to a directory', DropUploader, client, readonly_dircap, errors_dir, magicfolderdb, inotify=fake_inotify) + + def _not_implemented(): + raise NotImplementedError("blah") + self.patch(drop_upload, 'get_inotify_module', _not_implemented) + self.shouldFail(NotImplementedError, 'unsupported', 'blah', + DropUploader, client, upload_dircap, errors_dir, magicfolderdb) d.addCallback(_check_errors) return d