diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-05-24 14:25:19 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-05-24 14:59:55 +0200 |
commit | cf610930f7a9b56b0378920bfdd4263f490b5cb3 (patch) | |
tree | c6afdc78a8d07fd5d32de6482ef186fa8436f74a /tests/integration/mail/adaptors | |
parent | 37b25fd88400df8cc726470b5d897111f2373b96 (diff) |
[tests] fix tests
Diffstat (limited to 'tests/integration/mail/adaptors')
-rw-r--r-- | tests/integration/mail/adaptors/test_soledad_adaptor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/mail/adaptors/test_soledad_adaptor.py b/tests/integration/mail/adaptors/test_soledad_adaptor.py index 72b0be8f..14e0e407 100644 --- a/tests/integration/mail/adaptors/test_soledad_adaptor.py +++ b/tests/integration/mail/adaptors/test_soledad_adaptor.py @@ -396,9 +396,9 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin): msg = adaptor.get_msg_from_string(MessageClass, raw) def check_create_result(created): - # that's one mdoc, one hdoc, one fdoc, one cdoc - self.assertEqual(len(created), 4) - for doc in created: + # that's the wrapper + self.assertEqual(created.__class__.__name__, 'MessageWrapper') + for doc in [created.mdoc, created.fdoc, created.hdoc]: self.assertTrue( doc.__class__.__name__, "SoledadDocument") |