devtools/apptest.py
changeset 2298 8dffb4cce3b7
parent 2293 7ded2a1416e4
child 2476 1294a6bdf3bf
--- a/devtools/apptest.py	Tue Jul 07 11:36:51 2009 +0200
+++ b/devtools/apptest.py	Tue Jul 07 11:37:08 2009 +0200
@@ -34,6 +34,14 @@
     def message(self):
         return message_from_string(self.msg)
 
+    @property
+    def subject(self):
+        return self.message.get('Subject')
+
+    @property
+    def content(self):
+        return self.message.get_payload(decode=True)
+
     def __repr__(self):
         return '<Email to %s with subject %s>' % (','.join(self.recipients),
                                                   self.message.get('Subject'))