소스 검색

Add (failing) test for email recipient with delimiter

See #121
Bryan J Swift 11 년 전
부모
커밋
299aba3e4c
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10
    0
      tests.py

+ 10
- 0
tests.py 파일 보기

@@ -199,6 +199,16 @@ class MailTests(unittest.TestCase):
199 199
         s.quit()
200 200
         self.assertEmailReceived(subject)
201 201
 
202
+    def test_smtps_delimiter_to(self):
203
+        """Email sent to address with delimiter is delivered"""
204
+        import smtplib
205
+        msg, subject = new_message(TEST_ADDRESS, 'root+foo@sovereign.local')
206
+        s = smtplib.SMTP_SSL(TEST_SERVER, 465)
207
+        s.login(TEST_ADDRESS, TEST_PASSWORD)
208
+        s.sendmail(TEST_ADDRESS, ['root+foo@sovereign.local'], msg)
209
+        s.quit()
210
+        self.assertEmailReceived(subject)
211
+
202 212
     def test_smtps_requires_auth(self):
203 213
         """SMTPS with no authentication is rejected"""
204 214
         import smtplib

Loading…
취소
저장