author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 07 Jul 2009 11:37:08 +0200 | |
changeset 2298 | 8dffb4cce3b7 |
parent 2297 | 4cf57dd80650 |
child 2299 | 85fb4b808f5b |
--- 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'))