summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-02-26 13:52:18 -0400
committerKali Kaneko <kali@leap.se>2015-03-03 14:27:03 -0400
commit703f6723432d1075ea3fd3ba71fd29b18f10f5c0 (patch)
tree6a8ed703df4f9ad6f701371ccfe2557577688983
parent50bc463c2250089240519e386a053bf8e3e7f04e (diff)
cast generator to list; change expected after rename
-rw-r--r--mail/src/leap/mail/imap/tests/test_imap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/src/leap/mail/imap/tests/test_imap.py b/mail/src/leap/mail/imap/tests/test_imap.py
index 738a6740..802bc9d1 100644
--- a/mail/src/leap/mail/imap/tests/test_imap.py
+++ b/mail/src/leap/mail/imap/tests/test_imap.py
@@ -472,7 +472,7 @@ class LEAPIMAP4ServerTestCase(IMAP4HelperMixin):
return d.addCallback(self._cbTestHierarchicalRename)
def _cbTestHierarchicalRename(self, mailboxes):
- expected = ['INBOX', 'newname', 'newname/m1', 'newname/m2']
+ expected = ['INBOX', 'newname/m1', 'newname/m2']
self.assertEqual(sorted(mailboxes), sorted([s for s in expected]))
def testSubscribe(self):
@@ -967,6 +967,7 @@ class LEAPIMAP4ServerTestCase(IMAP4HelperMixin):
return d.addCallback(self._cbTestFullAppend, infile)
def _cbTestFullAppend(self, fetched, infile):
+ fetched = list(fetched)
self.assertTrue(len(fetched) == 1)
self.assertTrue(len(fetched[0]) == 2)
uid, msg = fetched[0]