summaryrefslogtreecommitdiff
path: root/src/leap
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
commit6b3a4017861df498f99ea62ce9de41ecf7caf12b (patch)
tree51df5fe73675461d7d8fc56c2b7ea146353ffff0 /src/leap
parentfac71359f77d5649cf0324f7cd9bfdcf13cb120d (diff)
cast generator to list; change expected after rename
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/mail/imap/tests/test_imap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/imap/tests/test_imap.py b/src/leap/mail/imap/tests/test_imap.py
index 738a674..802bc9d 100644
--- a/src/leap/mail/imap/tests/test_imap.py
+++ b/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]