Skip to content

Commit 62824c8

Browse files
committed
Add some tests capturing the new expectation
1 parent 1c9ecd1 commit 62824c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_smtp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def test_send_email(smtpserver):
6565
assert msg['To'] == '[email protected]'
6666
assert msg['From'] == '[email protected]'
6767
assert msg['Subject'] == 'Your e-mail is getting there'
68+
assert msg.details.rcpttos == ['[email protected]']
69+
assert msg.details.peer
70+
assert msg.details.mailfrom
6871

6972
# send another e-mail
7073
send_plain_email(

0 commit comments

Comments
 (0)