summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-07-28 09:20:19 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:28 +0200
commit6450be6dd2eb2d5a683f81657ed197c930fd9784 (patch)
tree98bbb950efb54c748ead78051ddeeaf9340d97fc /service/pixelated
parent769d20969dda078b01fc82b5ecd27632936dbe4a (diff)
Added actual assert to add_mail mail store test.
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/adapter/mailstore/leap_mailstore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py
index 9b6e0e0d..3c6544df 100644
--- a/service/pixelated/adapter/mailstore/leap_mailstore.py
+++ b/service/pixelated/adapter/mailstore/leap_mailstore.py
@@ -95,10 +95,10 @@ class LeapMailStore(MailStore):
mailbox = yield self._get_or_create_mailbox(mailbox_name)
message = SoledadMailAdaptor().get_msg_from_string(Message, raw_msg)
message.get_wrapper().set_mbox_uuid(mailbox.doc_id)
- message.get_wrapper().create(self.soledad)
+ yield message.get_wrapper().create(self.soledad)
# add behavious from insert_mdoc_id from mail.py
- defer.returnValue(mailbox)
+ defer.returnValue(message)
@defer.inlineCallbacks
def _leap_message_to_leap_mail(self, mail_id, message, include_body):