From 23cd8677a56ce3343ddb4137b71c9bb8a28479d7 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 21 May 2015 15:44:31 +0100 Subject: [PATCH] drop-upload: add unsupported platform test. Signed-off-by: Daira Hopwood --- src/allmydata/test/test_drop_upload.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.45.2