diff options
author | Kali Kaneko <kali@leap.se> | 2015-02-26 13:52:18 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-03-03 14:27:03 -0400 |
commit | 6b3a4017861df498f99ea62ce9de41ecf7caf12b (patch) | |
tree | 51df5fe73675461d7d8fc56c2b7ea146353ffff0 /src/leap/mail | |
parent | fac71359f77d5649cf0324f7cd9bfdcf13cb120d (diff) |
cast generator to list; change expected after rename
Diffstat (limited to 'src/leap/mail')
-rw-r--r-- | src/leap/mail/imap/tests/test_imap.py | 3 |
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] |