From 840472071c4b5aeb76a2d5cf7769bdea81b1fa9b Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Fri, 12 Feb 2016 08:27:28 +0000 Subject: [PATCH] Added the required verbosity reference --- src/documents/mail.py | 2 ++ src/documents/tests/test_mail.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/documents/mail.py b/src/documents/mail.py index 3d961f4d5..7c3b20055 100644 --- a/src/documents/mail.py +++ b/src/documents/mail.py @@ -44,6 +44,8 @@ class Message(Renderable): https://www.ianlewis.org/en/parsing-email-attachments-python """ + self.verbosity = verbosity + self.subject = None self.time = None self.attachment = None diff --git a/src/documents/tests/test_mail.py b/src/documents/tests/test_mail.py index 366dc97b9..9a9480db4 100644 --- a/src/documents/tests/test_mail.py +++ b/src/documents/tests/test_mail.py @@ -27,7 +27,7 @@ class TestMessage(TestCase): with open(self.sample, "rb") as f: - message = Message(f.read()) + message = Message(f.read(), verbosity=0) self.assertTrue(message) self.assertEqual(message.subject, "Test 0")