diff options
author | Kali Kaneko <kali@leap.se> | 2015-01-07 12:12:24 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:05:43 -0400 |
commit | 9c40103a3c3dcdb3e4c4edae9f466f1701e022fc (patch) | |
tree | ca7c482e10a8084609816ee4f2c21534cf6da97a /src/leap/mail/adaptors/tests | |
parent | f7030295a936cc5da33f50411b5ff60ae0eec7cc (diff) |
Complete IMAP implementation, update tests
Diffstat (limited to 'src/leap/mail/adaptors/tests')
-rw-r--r-- | src/leap/mail/adaptors/tests/test_soledad_adaptor.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/mail/adaptors/tests/test_soledad_adaptor.py b/src/leap/mail/adaptors/tests/test_soledad_adaptor.py index 7bdeef5..3dc79fe 100644 --- a/src/leap/mail/adaptors/tests/test_soledad_adaptor.py +++ b/src/leap/mail/adaptors/tests/test_soledad_adaptor.py @@ -276,8 +276,9 @@ HERE = os.path.split(os.path.abspath(__file__))[0] class TestMessageClass(object): - def __init__(self, wrapper): + def __init__(self, wrapper, uid): self.wrapper = wrapper + self.uid = uid def get_wrapper(self): return self.wrapper @@ -322,9 +323,9 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin): self.assertTrue(msg.wrapper.cdocs is not None) self.assertEquals(len(msg.wrapper.cdocs), 1) self.assertEquals(msg.wrapper.fdoc.chash, chash) - self.assertEquals(msg.wrapper.fdoc.size, 3834) + self.assertEquals(msg.wrapper.fdoc.size, 3837) self.assertEquals(msg.wrapper.hdoc.chash, chash) - self.assertEqual(msg.wrapper.hdoc.headers['subject'], + self.assertEqual(dict(msg.wrapper.hdoc.headers)['Subject'], subject) self.assertEqual(msg.wrapper.hdoc.subject, subject) self.assertEqual(msg.wrapper.cdocs[1].phash, phash) |