summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-08-24 13:32:51 -0400
committerKali Kaneko <kali@leap.se>2016-08-25 11:13:21 -0400
commit67ba7029ed3c2a68baef850dc1ff5ba23fc926cd (patch)
tree5bebbd694abfc698cf7f1d850c45b5441bbf1620 /mail
parent491bf7dcf2a3a9eafb13894aa7c2c68586ae3a76 (diff)
[tests] avoid pytest warning
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/adaptors/tests/test_soledad_adaptor.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/src/leap/mail/adaptors/tests/test_soledad_adaptor.py b/mail/src/leap/mail/adaptors/tests/test_soledad_adaptor.py
index 9e76d609..73eaf164 100644
--- a/mail/src/leap/mail/adaptors/tests/test_soledad_adaptor.py
+++ b/mail/src/leap/mail/adaptors/tests/test_soledad_adaptor.py
@@ -278,7 +278,7 @@ class SoledadDocWrapperTestCase(SoledadTestMixin):
HERE = os.path.split(os.path.abspath(__file__))[0]
-class TestMessageClass(object):
+class MessageClass(object):
def __init__(self, wrapper, uid):
self.wrapper = wrapper
self.uid = uid
@@ -313,7 +313,7 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin):
with open(os.path.join(HERE, "rfc822.message")) as f:
raw = f.read()
- msg = adaptor.get_msg_from_string(TestMessageClass, raw)
+ msg = adaptor.get_msg_from_string(MessageClass, raw)
chash = ("D27B2771C0DCCDCB468EE65A4540438"
"09DBD11588E87E951545BE0CBC321C308")
@@ -339,7 +339,7 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin):
msg.attach(MIMEText(u'a utf8 message', _charset='utf-8'))
adaptor = self.get_adaptor()
- msg = adaptor.get_msg_from_string(TestMessageClass, msg.as_string())
+ msg = adaptor.get_msg_from_string(MessageClass, msg.as_string())
self.assertEqual(
'base64', msg.wrapper.cdocs[1].content_transfer_encoding)
@@ -368,7 +368,7 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin):
raw='This is a test message')}
msg = adaptor.get_msg_from_docs(
- TestMessageClass, mdoc, fdoc, hdoc, cdocs=cdocs)
+ MessageClass, mdoc, fdoc, hdoc, cdocs=cdocs)
self.assertEqual(msg.wrapper.fdoc.flags,
('\Seen', '\Nice'))
self.assertEqual(msg.wrapper.fdoc.tags,
@@ -391,7 +391,7 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin):
with open(os.path.join(HERE, "rfc822.message")) as f:
raw = f.read()
- msg = adaptor.get_msg_from_string(TestMessageClass, raw)
+ msg = adaptor.get_msg_from_string(MessageClass, raw)
def check_create_result(created):
# that's one mdoc, one hdoc, one fdoc, one cdoc
@@ -436,7 +436,7 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin):
d.addCallback(assert_doc_has_flags)
return d
- msg = adaptor.get_msg_from_string(TestMessageClass, raw)
+ msg = adaptor.get_msg_from_string(MessageClass, raw)
d = adaptor.create_msg(adaptor.store, msg)
d.addCallback(lambda _: adaptor.store.get_all_docs())
d.addCallback(partial(self.assert_num_docs, 4))