Changeset 11778 for main/waeup.kofa/trunk/src/waeup/kofa/tests
- Timestamp:
- 12 Aug 2014, 15:49:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_smtp.py
r11586 r11778 244 244 u'msg: From: A sender <no-reply@waeup.org>', 245 245 u'msg: To: A recipient <recpt@example.com>', 246 # u'msg: Cc: A sender <sender@example.com>', 247 u'msg: Reply-To: A sender <sender@example.com>', 248 u'msg: Subject: A subject', 249 u'msg: ', 250 u'msg: This is a test mail.', 251 u''] 252 ) 253 return 254 255 def test_send_mail_with_cc(self): 256 # with cc=True the message will be CCed to the from address 257 mail_id = send_mail( 258 u'A sender', u'sender@example.com', 259 u'A recipient', u'recpt@example.com', 260 u'A subject', 261 u'This is a test mail.', 262 cc=True) 263 self.assertEqual(mail_id, 'fake-message-id@example.com') 264 self.assertEqual( 265 self.get_fake_smtp_output().split('\n'), 266 [u'Sending email from no-reply@waeup.org to ' 267 u'recpt@example.com, sender@example.com:', 268 u'Message:', 269 u'msg: MIME-Version: 1.0', 270 u'msg: Content-Type: text/plain; charset="us-ascii"', 271 u'msg: Content-Transfer-Encoding: 7bit', 272 u'msg: From: A sender <no-reply@waeup.org>', 273 u'msg: To: A recipient <recpt@example.com>', 246 274 u'msg: Cc: A sender <sender@example.com>', 247 275 u'msg: Reply-To: A sender <sender@example.com>', … … 270 298 u'msg: From: A sender <no-reply@waeup.org>', 271 299 u'msg: To: A recipient <recpt@example.com>', 272 u'msg: Cc: A sender <sender@example.com>',300 # u'msg: Cc: A sender <sender@example.com>', 273 301 u'msg: Reply-To: A sender <sender@example.com>', 274 302 u'msg: Subject: A subject', … … 296 324 u'msg: From: A sender <no-reply@waeup.org>', 297 325 u'msg: To: A recipient <recpt@example.com>', 298 u'msg: Cc: A sender <sender@example.com>',326 # u'msg: Cc: A sender <sender@example.com>', 299 327 u'msg: Reply-To: A sender <sender@example.com>', 300 328 u'msg: Subject: A subject',
Note: See TracChangeset for help on using the changeset viewer.