]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
drop-upload: add unsupported platform test.
authorDaira Hopwood <daira@jacaranda.org>
Thu, 21 May 2015 14:44:31 +0000 (15:44 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 21 May 2015 14:44:31 +0000 (15:44 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_drop_upload.py

index fbf34cdfc172fb0b696a88eb916376d30bd3269c..1ac90545ed4003ac3fd63f7155d7508630b17baa 100644 (file)
@@ -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