Browse Source

Add (failing) test for email recipient with delimiter

See #121
Bryan J Swift 11 years ago
parent
commit
299aba3e4c
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      tests.py

+ 10
- 0
tests.py View File

199
         s.quit()
199
         s.quit()
200
         self.assertEmailReceived(subject)
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
     def test_smtps_requires_auth(self):
212
     def test_smtps_requires_auth(self):
203
         """SMTPS with no authentication is rejected"""
213
         """SMTPS with no authentication is rejected"""
204
         import smtplib
214
         import smtplib

Loading…
Cancel
Save