diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-17 11:15:00 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:24 +0200 |
commit | 953fa104ab56d38d65b21f9d2108a95f62a0e8b6 (patch) | |
tree | 8f2168b709b5ae54ec7aaff8cbac348d516d36f5 /service/test/integration | |
parent | 1ee61a27b1a11f6e60dfd34fb72d3c63f05e7e24 (diff) |
Fixing integration tests.
Diffstat (limited to 'service/test/integration')
-rw-r--r-- | service/test/integration/test_delete_mail.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/test/integration/test_delete_mail.py b/service/test/integration/test_delete_mail.py index 987cf307..18bae44a 100644 --- a/service/test/integration/test_delete_mail.py +++ b/service/test/integration/test_delete_mail.py @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. - +from twisted.internet import defer from test.support.integration import SoledadTestBase, MailBuilder @@ -33,8 +33,9 @@ class DeleteMailTest(SoledadTestBase): trash_mails = self.get_mails_by_tag('trash') self.assertEquals(1, len(trash_mails)) + @defer.inlineCallbacks def test_delete_mail_when_trashing_mail_from_trash_mailbox(self): - mails = self.add_multiple_to_mailbox(1, 'trash') + mails = yield self.add_multiple_to_mailbox(1, 'trash') self.delete_mails([mails[0].ident]) trash_mails = self.get_mails_by_tag('trash') |