summaryrefslogtreecommitdiff
path: root/src/leap/mail/tests
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-02-26 13:10:18 -0400
committerKali Kaneko <kali@leap.se>2015-03-03 14:27:03 -0400
commit63a252fb5dadb8b57212ea6d5e09737ea22d470f (patch)
tree909ec2eb1e8bc9ccce9e705a8377bb984ab1ac9c /src/leap/mail/tests
parentf6375e6bed217974369d77b7ff7191c3cb9fbb24 (diff)
fix rename_mailbox implementation, make test pass
Diffstat (limited to 'src/leap/mail/tests')
-rw-r--r--src/leap/mail/tests/test_mail.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/mail/tests/test_mail.py b/src/leap/mail/tests/test_mail.py
index 24dcc8b..d326ca8 100644
--- a/src/leap/mail/tests/test_mail.py
+++ b/src/leap/mail/tests/test_mail.py
@@ -342,9 +342,9 @@ class AccountTestCase(SoledadTestMixin):
def test_rename_mailbox(self):
acc = self.get_account()
- d = acc.callWhenReady(lambda _: acc.add_mailbox("TestMailbox"))
- d = acc.callWhenReady(lambda _: acc.rename_mailbox(
- "TestMailbox", "RenamedMailbox"))
+ d = acc.callWhenReady(lambda _: acc.add_mailbox("OriginalMailbox"))
+ d.addCallback(lambda _: acc.rename_mailbox(
+ "OriginalMailbox", "RenamedMailbox"))
d.addCallback(lambda _: acc.list_all_mailbox_names())
d.addCallback(self._test_rename_mailbox_cb)
return d