diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-27 15:45:09 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-27 15:45:09 +0200 |
commit | 3280dcca9d85b69f7344b2a509274565039e2c7a (patch) | |
tree | ce1f463fb1aa591157883730c5d383866e1f3399 /service/test | |
parent | c446515a56d5859d55ce9f162d1e3327627981c0 (diff) |
Cleaned up MailboxInboxListener.
- Issue #445
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/integration/test_incoming_mail.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/service/test/integration/test_incoming_mail.py b/service/test/integration/test_incoming_mail.py index 1f3911ff..bc3ca099 100644 --- a/service/test/integration/test_incoming_mail.py +++ b/service/test/integration/test_incoming_mail.py @@ -26,16 +26,15 @@ class IncomingMailTest(SoledadTestBase): def test_message_collection(self): # given MailboxIndexerListener.SEARCH_ENGINE = self.search_engine - - yield MailboxIndexerListener.listen(self.account, 'INBOX', self.mail_store) - mbx = yield self.account.getMailbox('INBOX') - input_mail = MailBuilder().build_input_mail() + # when + yield MailboxIndexerListener.listen(self.account, 'INBOX', self.mail_store) yield mbx.addMessage(input_mail.raw, []) - yield self.wait_in_reactor() + # then + yield self.wait_in_reactor() # event handlers are called async, wait for it mails, mail_count = self.search_engine.search('in:all') self.assertEqual(1, mail_count) |