summaryrefslogtreecommitdiff
path: root/service/test/unit/adapter/mailstore
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-08-06 10:31:05 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:33 +0200
commitce86deeed4d4e408ddad294beec7952601345025 (patch)
treed56e840ef1489b3dfa4436fe7edb25adea26e056 /service/test/unit/adapter/mailstore
parent5c978727af0d6a67bf8456a8bc6bd13b5c87fc1e (diff)
Test that delete mailbox is not yet supported by indexing mail store.
Diffstat (limited to 'service/test/unit/adapter/mailstore')
-rw-r--r--service/test/unit/adapter/mailstore/test_searchable_mailstore.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/service/test/unit/adapter/mailstore/test_searchable_mailstore.py b/service/test/unit/adapter/mailstore/test_searchable_mailstore.py
index e63b683f..8c571201 100644
--- a/service/test/unit/adapter/mailstore/test_searchable_mailstore.py
+++ b/service/test/unit/adapter/mailstore/test_searchable_mailstore.py
@@ -96,6 +96,14 @@ class TestSearchableMailStore(TestCase):
self.assertEqual(mail, result)
+ @defer.inlineCallbacks
+ def test_delete_mailbox_is_not_implemented(self):
+ try:
+ yield self.store.delete_mailbox(ANY_MAILBOX)
+ self.fail("Should raise NotImplementedError")
+ except NotImplementedError:
+ pass
+
def _load_mail_from_file(self, mail_file):
mailset_dir = pkg_resources.resource_filename('test.unit.fixtures', 'mailset')
mail_file = os.path.join(mailset_dir, 'new', mail_file)