File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111from io import StringIO , BytesIO
1212from itertools import chain
1313from random import choice
14+ from socket import getfqdn
1415try :
1516 from threading import Thread
1617except ImportError :
@@ -3314,6 +3315,17 @@ def test_make_msgid_domain(self):
33143315 email .utils .make_msgid (domain = 'testdomain-string' )[- 19 :],
33153316 '@testdomain-string>' )
33163317
3318+ def test_make_msgid_idstring (self ):
3319+ self .assertEqual (
3320+ email .utils .make_msgid (idstring = 'test-idstring' ,
3321+ domain = 'testdomain-string' )[- 33 :],
3322+ '.test-idstring@testdomain-string>' )
3323+
3324+ def test_make_msgid_default_domain (self ):
3325+ self .assertTrue (
3326+ email .utils .make_msgid ().endswith (
3327+ '@' + getfqdn () + '>' ))
3328+
33173329 def test_Generator_linend (self ):
33183330 # Issue 14645.
33193331 with openfile ('msg_26.txt' , newline = '\n ' ) as f :
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ Tom Bridgman
189189Anthony Briggs
190190Keith Briggs
191191Tobias Brink
192+ Dillon Brock
192193Richard Brodie
193194Michael Broghton
194195Ammar Brohi
You can’t perform that action at this time.
0 commit comments