Changeset 143:1d4505cef74f for mailer/tests
- Timestamp:
- 07/31/07 17:15:58 (16 months ago)
- Files:
-
- 1 modified
-
mailer/tests/test_mailer.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mailer/tests/test_mailer.py
r136 r143 45 45 46 46 worker = MailWorker() 47 mail_id = send_mail('toto', 'toto@toto.com',48 'vouvou', 'coucou ')47 mail_id = send_mail('toto', ['toto@toto.com'], 48 'vouvou', 'coucou é') 49 49 50 50 mail = worker._get_mails()[0] 51 51 msg = worker._get_message(mail) 52 raw = """\ 53 MIME-Version: 1.0 54 Content-Transfer-Encoding: 8bit 55 From: toto 56 To: toto@toto.com 57 Subject: vouvou 58 Content-Type: text/plain; charset="utf-8" 59 60 coucou \xc3\xa9""" 61 62 msg = msg.as_string().split('\n') 63 msg = [line for line in msg if not line.startswith('Date')] 64 msg = '\n'.join(msg) 65 66 self.assertEquals(msg, raw) 67 52 68 53 69 def test_suite():
